Commit 77f6ec05 by Uttam Pawar Committed by David Edelsohn

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
parent fb02551a
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
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment