Fix memory leak in identify_jump_threads()
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Thu, 23 Mar 2017 12:23:58 +0000 (12:23 +0000)
committerMarkus Trippelsdorf <trippels@gcc.gnu.org>
Thu, 23 Mar 2017 12:23:58 +0000 (12:23 +0000)
* tree-vrp.c (identify_jump_threads): Delete avail_exprs.

From-SVN: r246415

gcc/ChangeLog
gcc/tree-vrp.c

index ddf90e5cd67e59811bc73b792ae6408d24429bbb..7135acce58a1273e47c94c87a7bde6219bd070ad 100644 (file)
@@ -1,3 +1,7 @@
+2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de> 
+
+       * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
+
 2017-03-23  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/80032
index 26652e3b048a5fa8dbeb400f73f37748f2408d3f..28d9c175dcd45497154494c92e83874e2f2a4111 100644 (file)
@@ -11021,6 +11021,7 @@ identify_jump_threads (void)
      ASSERT_EXPRs are still in the IL and cfg cleanup code does not yet
      handle ASSERT_EXPRs gracefully.  */
   delete equiv_stack;
+  delete avail_exprs;
   delete avail_exprs_stack;
 }