OSDN Git Service

2006-02-07 Uttam Pawar <uttamp@us.ibm.com>
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Feb 2006 02:00:42 +0000 (02:00 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Feb 2006 02:00:42 +0000 (02:00 +0000)
        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

gcc/ChangeLog
gcc/tree-ssa-loop-unswitch.c

index 053e26d..f1471bb 100644 (file)
@@ -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
index f896354..ecb632c 100644 (file)
@@ -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;
 }