p4raw-id: //depot/perl@27702
/* free all slabs above current one */
if (orig_slab->next) {
- regmatch_slab *sl = orig_slab->next;
+ regmatch_slab *osl, *sl = orig_slab->next;
orig_slab->next = NULL;
while (sl) {
+ osl = sl;
sl = sl->next;
+ Safefree(osl);
}
}