summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-unswitch.c
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-08 02:00:42 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-08 02:00:42 +0000
commit5faf8533063de0810cb2fda22ca6626c21e58e31 (patch)
treec7df1e2f33645f209ab06ff00a64a82460f2cfd8 /gcc/tree-ssa-loop-unswitch.c
parenteb695f047b975e5c574afdb4bc874ee7e8dd0118 (diff)
downloadgcc-5faf8533063de0810cb2fda22ca6626c21e58e31.tar.gz
2006-02-07 Uttam Pawar <uttamp@us.ibm.com>
PR tree-optimization/26145 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free bbs pointer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110738 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-unswitch.c')
-rw-r--r--gcc/tree-ssa-loop-unswitch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index f8963548fee..ecb632cabc7 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -255,6 +255,7 @@ tree_unswitch_single_loop (struct loops *loops, struct loop *loop, int num)
if (!nloop)
{
free_original_copy_tables ();
+ free (bbs);
return changed;
}
@@ -265,6 +266,7 @@ tree_unswitch_single_loop (struct loops *loops, struct loop *loop, int num)
/* Invoke itself on modified loops. */
tree_unswitch_single_loop (loops, nloop, num + 1);
tree_unswitch_single_loop (loops, loop, num + 1);
+ free (bbs);
return true;
}