[obv] free VEC in ipa-split.c:find_split_points

Nathan Froyd froydnj@codesourcery.com
Tue Aug 10 03:49:00 GMT 2010


We weren't freeing the DFS stack in find_split_points.

Tested on x86_64-unknown-linux-gnu.  Committed as obvious.

-Nathan

	* ipa-split.c (find_split_points): Free stack.

Index: ipa-split.c
===================================================================
--- ipa-split.c	(revision 163046)
+++ ipa-split.c	(working copy)
@@ -903,6 +903,7 @@ find_split_points (int overall_time, int
   ENTRY_BLOCK_PTR->aux = NULL;
   FOR_EACH_BB (bb)
     bb->aux = NULL;
+  VEC_free (stack_entry, heap, stack);
   BITMAP_FREE (current.ssa_names_to_pass);
 }
 



More information about the Gcc-patches mailing list