From: Martin Liska Date: Thu, 19 May 2016 15:07:28 +0000 (+0200) Subject: Fix memory leak in tree-parloops.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4089c3402ca61f129c426c2a312a1849981dfb46;p=gcc.git Fix memory leak in tree-parloops.c * tree-parloops.c (oacc_entry_exit_ok): Release a vector. From-SVN: r236471 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1e78e4bbc19..8b30dea759c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-05-19 Martin Liska + + * tree-parloops.c (oacc_entry_exit_ok): Release a vector. + 2016-05-19 Martin Liska * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs. diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c index 25a29bdcb28..f472717cec2 100644 --- a/gcc/tree-parloops.c +++ b/gcc/tree-parloops.c @@ -3168,6 +3168,7 @@ oacc_entry_exit_ok (struct loop *loop, } } + region_bbs.release (); free (loop_bbs); BITMAP_FREE (in_loop_bbs);