summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2006-04-02 16:32:10 +0000
committerDave Mitchell <davem@fdisolutions.com>2006-04-02 16:32:10 +0000
commit5d9a96ca2d500987d60740e4430baf1602f410c1 (patch)
treeb445051ed7a8129a0b2e3958c3cfce291fa7618a /perl.c
parent623e66097f3d3c76e4fbfed49657029a98953c17 (diff)
downloadperl-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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 15fc64b0ac..8af44cc4aa 100644
--- a/perl.c
+++ b/perl.c
@@ -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) {