PR jit/63854: Fix leak of "avail" within tree-ssa-pre.c
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 19 Nov 2014 20:14:18 +0000 (20:14 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 19 Nov 2014 20:14:18 +0000 (20:14 +0000)
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
gcc/tree-ssa-pre.c

index 959a082..9c9bd01 100644 (file)
@@ -1,6 +1,12 @@
 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
 
        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  <dmalcolm@redhat.com>
+
+       PR jit/63854
        * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
 
 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
index c42b2a4..933cf36 100644 (file)
@@ -3202,7 +3202,7 @@ do_regular_insertion (basic_block block, basic_block dom)
   bool new_stuff = false;
   vec<pre_expr> exprs;
   pre_expr expr;
-  vec<pre_expr> avail = vNULL;
+  auto_vec<pre_expr> avail;
   int i;
 
   exprs = sorted_array_from_bitmap_set (ANTIC_IN (block));