Fix memory leak in tree-parloops.c
authorMartin Liska <mliska@suse.cz>
Thu, 19 May 2016 15:07:28 +0000 (17:07 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 19 May 2016 15:07:28 +0000 (15:07 +0000)
* tree-parloops.c (oacc_entry_exit_ok): Release a vector.

From-SVN: r236471

gcc/ChangeLog
gcc/tree-parloops.c

index 1e78e4bbc194fca97f8c1efac4ea949c527331b5..8b30dea759c60d7ebd84dcbb80f61a1e2bac813e 100644 (file)
@@ -1,3 +1,7 @@
+2016-05-19  Martin Liska  <mliska@suse.cz>
+
+       * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
+
 2016-05-19  Martin Liska  <mliska@suse.cz>
 
        * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
index 25a29bdcb28e59fb0abe418883fbe3148190dfef..f472717cec20eb05025385057296263fd840eaa6 100644 (file)
@@ -3168,6 +3168,7 @@ oacc_entry_exit_ok (struct loop *loop,
        }
     }
 
+  region_bbs.release ();
   free (loop_bbs);
 
   BITMAP_FREE (in_loop_bbs);