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]
Other format: [Raw text]

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


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


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