From: Richard Biener Date: Tue, 14 Mar 2017 08:02:34 +0000 (+0000) Subject: re PR tree-optimization/80030 (valgrind error in vect_get_slp_defs at tree-vect-slp... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=778dd3b6277e4a4dda9dd55d1daf9c653c81e2be;p=gcc.git re PR tree-optimization/80030 (valgrind error in vect_get_slp_defs at tree-vect-slp.c:3360) 2017-03-14 Richard Biener PR tree-optimization/80030 * tree-vect-stmts.c (vectorizable_store): Plug memleak. From-SVN: r246117 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4c399515b9a..8b84aabe0ef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-03-14 Richard Biener + + PR tree-optimization/80030 + * tree-vect-stmts.c (vectorizable_store): Plug memleak. + 2017-03-13 Kito Cheng * config/riscv/riscv.c (riscv_emit_float_compare>: Use diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index 9f28321280a..d74508c0b32 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -6125,6 +6125,8 @@ vectorizable_store (gimple *stmt, gimple_stmt_iterator *gsi, gimple **vec_stmt, if (slp) break; } + + vec_oprnds.release (); return true; }