summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-12-08 07:27:13 -0700
committerKarl Williamson <khw@cpan.org>2017-12-08 07:30:33 -0700
commit4ee748a5cc45fab2bd55de5258176a0cdf99bc96 (patch)
treed59b7cfef5a47dcc1a2d37f220b8a5a534771672 /regcomp.c
parent9842f1a008ea4490ae903e34ed554be5e0ffc139 (diff)
downloadperl-4ee748a5cc45fab2bd55de5258176a0cdf99bc96.tar.gz
PATCH: [perl #132548] regcomp.c Fix memory leak
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index 29af44c7a0..83d6699cc9 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -17721,6 +17721,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
if (_invlist_len(only_non_utf8_list) != 0) {
ANYOF_FLAGS(ret) |= ANYOF_SHARED_d_MATCHES_ALL_NON_UTF8_NON_ASCII_non_d_WARN_SUPER;
}
+ SvREFCNT_dec_NN(only_non_utf8_list);
}
else {
/* Here there were no complemented posix classes. That means