This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
haifa memory leak
- To: gcc-patches at gcc dot gnu dot org
- Subject: haifa memory leak
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 04 May 2000 10:03:51 -0600
- Reply-To: law at cygnus dot com
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);