diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2006-04-02 16:32:10 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2006-04-02 16:32:10 +0000 |
commit | 5d9a96ca2d500987d60740e4430baf1602f410c1 (patch) | |
tree | b445051ed7a8129a0b2e3958c3cfce291fa7618a /perl.c | |
parent | 623e66097f3d3c76e4fbfed49657029a98953c17 (diff) | |
download | perl-5d9a96ca2d500987d60740e4430baf1602f410c1.tar.gz |
use slabs to allocate save state space in regmatch()
p4raw-id: //depot/perl@27679
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1257,6 +1257,12 @@ perl_destruct(pTHXx) sv_free_arenas(); + while (PL_regmatch_slab) { + regmatch_slab *s = PL_regmatch_slab; + PL_regmatch_slab = PL_regmatch_slab->next; + Safefree(s); + } + /* As the absolutely last thing, free the non-arena SV for mess() */ if (PL_mess_sv) { |