This is the mail archive of the gcc-patches@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]

haifa memory leak



This fixes a memory leak in the scheduler reported to the bugs list.

Bootstrapped & tested on i686-pc-linux-gnu.

	* haifa-sched.c (schedule_insns): Free the flow edge list when it
	is no longer needed
	

Index: haifa-sched.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/haifa-sched.c,v
retrieving revision 1.152
diff -c -3 -p -r1.152 haifa-sched.c
*** haifa-sched.c	2000/04/30 10:37:57	1.152
--- haifa-sched.c	2000/05/04 16:01:43
*************** schedule_insns (dump_file)
*** 6918,6923 ****
--- 6918,6926 ----
  	  if (sched_verbose >= 3)
  	    debug_regions ();
  
+ 	  /* We are done with flow's edge list.  */
+ 	  free_edge_list (edge_list);
+ 
  	  /* For now.  This will move as more and more of haifa is converted
  	     to using the cfg code in flow.c.  */
  	  free (dom);




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