This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Memory leaks?
- To: tudor.hulubei@data.ecora.com
- Subject: Re: Memory leaks?
- From: "Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de>
- Date: Wed, 1 Sep 1999 00:41:50 +0200
- CC: gcc@gcc.gnu.org
- References: <14284.11629.317341.603891@data.ecora.com>
> The leaks seem to be mostly from obstack allocations in make_node().
> My question is whether or not cc1plus deallocates everything upon exit
> or leaves it there knowing that the kernel will do it anyway, because
> in the latter case the leaks reported by my memory watchdog tool are
> totally useless.
It is the latter. Things on the permanent obstack are never released.
I believe there is some obstack diagnosis in gcc itself.
Regards,
Martin