summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-12-12 20:26:08 -0700
committerKarl Williamson <public@khwilliamson.com>2012-12-22 11:11:28 -0700
commit86f72d56e71cb202c98802b68923dfca4797c3e2 (patch)
tree10d09c56be441c5ebb8b9ef7515cc7a5c330347a /perl.c
parent9c0b68885345dfc017948c78b79c222b1468d96c (diff)
downloadperl-86f72d56e71cb202c98802b68923dfca4797c3e2.tar.gz
Use array for some inversion lists
This patch creates an array pointing to the inversion lists that cover the Latin-1 ranges for Posix character classes, and uses it instead of the individual variables previously referred to.
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 03e80a4e17..f8d9e8f183 100644
--- a/perl.c
+++ b/perl.c
@@ -1002,6 +1002,10 @@ perl_destruct(pTHXx)
PL_utf8_idstart = NULL;
PL_utf8_idcont = NULL;
PL_utf8_foldclosures = NULL;
+ for (i = 0; i < POSIX_CC_COUNT; i++) {
+ SvREFCNT_dec(PL_L1Posix_ptrs[i]);
+ PL_L1Posix_ptrs[i] = NULL;
+ }
if (!specialWARN(PL_compiling.cop_warnings))
PerlMemShared_free(PL_compiling.cop_warnings);