From d76815f487e2b1c4c56b3dbbdd4cad6bcf14fbc9 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 19 May 2016 17:05:26 +0200 Subject: [PATCH] Fix memory leak in omp-simd-clone.c * omp-simd-clone.c (simd_clone_adjust): Release vector. From-SVN: r236467 --- gcc/ChangeLog | 4 ++++ gcc/omp-simd-clone.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6418c3e3f67..e6e8bfb2ad2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-05-19 Martin Liska + + * omp-simd-clone.c (simd_clone_adjust): Release vector. + 2016-05-19 Martin Liska * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate diff --git a/gcc/omp-simd-clone.c b/gcc/omp-simd-clone.c index fa6ffecb4c2..ad7e83b49e8 100644 --- a/gcc/omp-simd-clone.c +++ b/gcc/omp-simd-clone.c @@ -1079,6 +1079,7 @@ simd_clone_adjust (struct cgraph_node *node) tree iter1 = make_ssa_name (iter); tree iter2 = make_ssa_name (iter); ipa_simd_modify_function_body (node, adjustments, retval, iter1); + adjustments.release (); /* Initialize the iteration variable. */ basic_block entry_bb = single_succ (ENTRY_BLOCK_PTR_FOR_FN (cfun)); -- 2.30.2