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

login
register
mail settings
Submitter Nathan Froyd
Date Aug. 10, 2010, 3 a.m.
Message ID <20100810030038.GN4130@codesourcery.com>
Download mbox | patch
Permalink /patch/61331/
State New
Headers show

Comments

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

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