OSDN Git Service

* loop-unswitch.c (unswitch_loop): Free zero_bitmap before returning.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Dec 2005 14:15:01 +0000 (14:15 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Dec 2005 14:15:01 +0000 (14:15 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108509 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/loop-unswitch.c

index 7951f9f..0852030 100644 (file)
@@ -1,3 +1,7 @@
+2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
+
+        * loop-unswitch.c (unswitch_loop): Free zero_bitmap before returning.
+
 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
 
        PR bootstrap/25397:
index d748730..8a71f72 100644 (file)
@@ -426,8 +426,11 @@ unswitch_loop (struct loops *loops, struct loop *loop, basic_block unswitch_on,
   sbitmap_zero (zero_bitmap);
   if (!duplicate_loop_to_header_edge (loop, entry, loops, 1,
        zero_bitmap, NULL, NULL, NULL, 0))
-    return NULL;
-  free (zero_bitmap);
+    {
+      sbitmap_free (zero_bitmap);
+      return NULL;
+    }
+  sbitmap_free (zero_bitmap);
   entry->flags |= irred_flag;
 
   /* Record the block with condition we unswitch on.  */