From: Revital Eres Date: Tue, 13 Dec 2011 05:41:45 +0000 (+0000) Subject: SMS: Add missing free operation in mark_loop_unsched X-Git-Tag: releases/gcc-4.7.0~1586 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=20936ceefe2d6e70fc6aa597914ca70dac6eee40;p=thirdparty%2Fgcc.git SMS: Add missing free operation in mark_loop_unsched From-SVN: r182271 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6a7fedd04394..efb530229810 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-12-13 Revital Eres + + * modulo-sched.c (mark_loop_unsched): Free bbs. + 2011-12-12 Jakub Jelinek PR rtl-optimization/51495 diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c index 0ea9a4d9a628..969b273208d9 100644 --- a/gcc/modulo-sched.c +++ b/gcc/modulo-sched.c @@ -1204,6 +1204,8 @@ mark_loop_unsched (struct loop *loop) for (i = 0; i < loop->num_nodes; i++) bbs[i]->flags |= BB_DISABLE_SCHEDULE; + + free (bbs); } /* Return true if all the BBs of the loop are empty except the