This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 2.96, libstdc++ v3 and efence
- To: Maurizio Umberto Puxeddu <umbpux at tin dot it>
- Subject: Re: gcc 2.96, libstdc++ v3 and efence
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 22 Aug 2000 00:46:03 -0300
- Cc: gcc-help at gcc dot gnu dot org, libstdc++ at sources dot redhat dot com
- Organization: GCC Team, Red Hat
- References: <39A10A45.57016F60@tin.it> <39A12165.69D76363@tin.it>
On Aug 21, 2000, Maurizio Umberto Puxeddu <umbpux@tin.it> wrote:
> int *p = new int;
> delete [] p;
This is wrong. If you allocate with `new', deallocate with `delete',
not `delete[]'.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me