From 3b56f890da7f68ff33cc2111d38d9a96f0840156 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 19 Nov 2014 20:14:18 +0000 Subject: [PATCH] PR jit/63854: Fix leak of "avail" within tree-ssa-pre.c gcc/ChangeLog: PR jit/63854 * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from vec<> to auto_vec<> to fix a leak. From-SVN: r217803 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-pre.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 959a0829f47..9c9bd0139e0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-11-19 David Malcolm + + PR jit/63854 + * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from + vec<> to auto_vec<> to fix a leak. + 2014-11-19 David Malcolm PR jit/63854 diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index c42b2a4dc1b..933cf36bc57 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -3202,7 +3202,7 @@ do_regular_insertion (basic_block block, basic_block dom) bool new_stuff = false; vec exprs; pre_expr expr; - vec avail = vNULL; + auto_vec avail; int i; exprs = sorted_array_from_bitmap_set (ANTIC_IN (block)); -- 2.30.2