This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cc1 memory leaks



  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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]