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

Submitted by Nathan Froyd on Aug. 10, 2010, 3 a.m.

Details

Message ID 20100810030038.GN4130@codesourcery.com
State New
Headers show

Commit Message

Nathan Froyd Aug. 10, 2010, 3 a.m.
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.

Patch hide | download patch | download mbox

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);
 }