Fix memory leak in omp-simd-clone.c
authorMartin Liska <mliska@suse.cz>
Thu, 19 May 2016 15:05:26 +0000 (17:05 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 19 May 2016 15:05:26 +0000 (15:05 +0000)
* omp-simd-clone.c (simd_clone_adjust): Release vector.

From-SVN: r236467

gcc/ChangeLog
gcc/omp-simd-clone.c

index 6418c3e3f67882ed381f2cc3d470474f0ab690c6..e6e8bfb2ad287bd0886069edce3e608b2612b8f7 100644 (file)
@@ -1,3 +1,7 @@
+2016-05-19  Martin Liska  <mliska@suse.cz>
+
+       * omp-simd-clone.c (simd_clone_adjust): Release vector.
+
 2016-05-19  Martin Liska  <mliska@suse.cz>
 
        * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
index fa6ffecb4c280c7c4e1b4f26008ef4eb80ea6a86..ad7e83b49e86b2f3ff908a52e14eb539e00be150 100644 (file)
@@ -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));