Blame SOURCES/perl-5.31.5-PATCH-gh-17218-memory-leak.patch
|
|
683572 |
From 0463f3a19af7afac8b402655ad66e5b05c095bcc Mon Sep 17 00:00:00 2001
|
|
|
683572 |
From: Karl Williamson <khw@cpan.org>
|
|
|
683572 |
Date: Fri, 15 Nov 2019 15:01:15 -0700
|
|
|
683572 |
Subject: [PATCH] PATCH: gh#17218 memory leak
|
|
|
683572 |
MIME-Version: 1.0
|
|
|
683572 |
Content-Type: text/plain; charset=UTF-8
|
|
|
683572 |
Content-Transfer-Encoding: 8bit
|
|
|
683572 |
|
|
|
683572 |
Indeed, a variable's ref count was not getting decremented.
|
|
|
683572 |
|
|
|
683572 |
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
683572 |
---
|
|
|
683572 |
regcomp.c | 1 +
|
|
|
683572 |
1 file changed, 1 insertion(+)
|
|
|
683572 |
|
|
|
683572 |
diff --git a/regcomp.c b/regcomp.c
|
|
|
683572 |
index 076ea350b5..7b9bf6ba7d 100644
|
|
|
683572 |
--- a/regcomp.c
|
|
|
683572 |
+++ b/regcomp.c
|
|
|
683572 |
@@ -18180,6 +18180,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
|
|
|
683572 |
|
|
|
683572 |
/* Likewise for 'posixes' */
|
|
|
683572 |
_invlist_union(posixes, cp_list, &cp_list);
|
|
|
683572 |
+ SvREFCNT_dec(posixes);
|
|
|
683572 |
|
|
|
683572 |
/* Likewise for anything else in the range that matched only
|
|
|
683572 |
* under UTF-8 */
|
|
|
683572 |
--
|
|
|
683572 |
2.21.0
|
|
|
683572 |
|