From 778dd3b6277e4a4dda9dd55d1daf9c653c81e2be Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 14 Mar 2017 08:02:34 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-vect-stmts.c | 2 ++ 2 files changed, 7 insertions(+) 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; } -- 2.30.2