This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: cc1 memory leaks
- To: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Subject: Re: cc1 memory leaks
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 04 May 2000 09:59:39 -0600
- cc: Martin dot Stromberg at lu dot erisoft dot se, gcc-bugs at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <200005032152.XAA06771@loewis.home.cs.tu-berlin.de>you write:
> I'd typically use a much deeper stack, like 12 or so.
>
> > * This memory was allocated from:
> > malloc [rtlib.o]
> > xmalloc [xmalloc.c:72]
> > create_edge_list [flow.c:6428]
> > schedule_insns [haifa-sched.c:6903]
> > rest_of_compilation [toplev.c:3232]
> > finish_function [c-decl.c:6499]
>
> It seems that the edge list created in schedule_insns insns is not
> deallocated. From a shallow inspection, it appears that it is safe
> to call free_edge_list right before
>
> /* For now. This will move as more and more of haifa is converted
> to using the cfg code in flow.c. */
> free (dom);
Agreed and tested. I'll submit & install the patch shortly.
jeff