From: Martin Liska Date: Thu, 19 May 2016 15:05:26 +0000 (+0200) Subject: Fix memory leak in omp-simd-clone.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d76815f487e2b1c4c56b3dbbdd4cad6bcf14fbc9;p=gcc.git Fix memory leak in omp-simd-clone.c * omp-simd-clone.c (simd_clone_adjust): Release vector. From-SVN: r236467 --- 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));