From: David Malcolm Date: Wed, 19 Nov 2014 20:14:18 +0000 (+0000) Subject: PR jit/63854: Fix leak of "avail" within tree-ssa-pre.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b56f890da7f68ff33cc2111d38d9a96f0840156;p=gcc.git 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 --- 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));