From 8bca627752ded0ccb970acd16fb9001db973e312 Mon Sep 17 00:00:00 2001 From: Markus Trippelsdorf Date: Thu, 23 Mar 2017 12:23:58 +0000 Subject: [PATCH] Fix memory leak in identify_jump_threads() * tree-vrp.c (identify_jump_threads): Delete avail_exprs. From-SVN: r246415 --- gcc/ChangeLog | 4 ++++ gcc/tree-vrp.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ddf90e5cd67..7135acce58a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-03-23 Markus Trippelsdorf + + * tree-vrp.c (identify_jump_threads): Delete avail_exprs. + 2017-03-23 Richard Biener PR tree-optimization/80032 diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 26652e3b048..28d9c175dcd 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -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; }