+2000-02-17 Jason Merrill <jason@casey.cygnus.com>
+
+ * bitmap.c (bitmap_operation): Don't leak bitmap elements.
+
2000-02-17 Mark Mitchell <mark@codesourcery.com>
* function.c (thread_prologue_and_epilogue_insns): Put a line note
changed = 1;
to_tmp = to_ptr;
to_ptr = to_ptr->next;
- to_tmp = bitmap_free;
+ to_tmp->next = bitmap_free;
bitmap_free = to_tmp;
}
if (to_ptr && to_ptr->indx == indx)
to_tmp->indx = indx;
bitmap_element_link (to, to_tmp);
}
+ else
+ {
+ to_tmp->next = bitmap_free;
+ bitmap_free = to_tmp;
+ }
}
/* If we have elements of TO left over, free the lot. */