diff options
author | Karl Williamson <khw@cpan.org> | 2019-11-15 15:01:15 -0700 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2020-02-12 17:51:44 +0000 |
commit | a0640ddd05f0316b72f3b31be7802f53fe06657e (patch) | |
tree | 834b4fbc1a0908a5debd628bebe3ef556be1ec52 | |
parent | b26c7c73a310fb5aacf2fbb5a13cae72ec5a8c9a (diff) | |
download | perl-a0640ddd05f0316b72f3b31be7802f53fe06657e.tar.gz |
PATCH: gh#17218 memory leak
Indeed, a variable's ref count was not getting decremented.
(cherry picked from commit 0463f3a19af7afac8b402655ad66e5b05c095bcc)
-rw-r--r-- | regcomp.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -18159,6 +18159,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth, /* Likewise for 'posixes' */ _invlist_union(posixes, cp_list, &cp_list); + SvREFCNT_dec(posixes); /* Likewise for anything else in the range that matched only * under UTF-8 */ |