aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUttam Pawar <uttamp@us.ibm.com>2006-02-08 02:00:42 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2006-02-07 21:00:42 -0500
commit77f6ec058d41a03257db37a1e21c3e95042109f8 (patch)
treec7df1e2f33645f209ab06ff00a64a82460f2cfd8 /gcc
parentfb02551af3c007748de683dfeb81f79ef12f5a6a (diff)
downloadgcc-77f6ec058d41a03257db37a1e21c3e95042109f8.zip
gcc-77f6ec058d41a03257db37a1e21c3e95042109f8.tar.gz
gcc-77f6ec058d41a03257db37a1e21c3e95042109f8.tar.bz2
re PR tree-optimization/26145 (memory leak in loop unswitching.)
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. From-SVN: r110738
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-loop-unswitch.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 053e26d..f1471bb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2006-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/26109
diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index f896354..ecb632c 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;
}