diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 053e26d6ca2..f1471bbd875 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-02-07 Uttam Pawar + + PR tree-optimization/26145 + * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free + bbs pointer. + 2006-02-07 John David Anglin PR target/26109 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; }