re PR tree-optimization/80030 (valgrind error in vect_get_slp_defs at tree-vect-slp...
authorRichard Biener <rguenther@suse.de>
Tue, 14 Mar 2017 08:02:34 +0000 (08:02 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 14 Mar 2017 08:02:34 +0000 (08:02 +0000)
2017-03-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/80030
* tree-vect-stmts.c (vectorizable_store): Plug memleak.

From-SVN: r246117

gcc/ChangeLog
gcc/tree-vect-stmts.c

index 4c399515b9a223c78781d7cfe2062b48473e6844..8b84aabe0ef2eecea22458830b819dbb088f6ffb 100644 (file)
@@ -1,3 +1,8 @@
+2017-03-14  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/80030
+       * tree-vect-stmts.c (vectorizable_store): Plug memleak.
+
 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
 
        * config/riscv/riscv.c (riscv_emit_float_compare>: Use
index 9f28321280af53eb899b8381e48db566159f6fc8..d74508c0b324ea2bb8bed12cb63f061e663db8d9 100644 (file)
@@ -6125,6 +6125,8 @@ vectorizable_store (gimple *stmt, gimple_stmt_iterator *gsi, gimple **vec_stmt,
          if (slp)
            break;
        }
+
+      vec_oprnds.release ();
       return true;
     }