Blame SOURCES/perl-5.31.5-PATCH-gh-17218-memory-leak.patch
|
|
b806ee |
From 70f089724b15d1b2ed9264f277454aa559d50232 Mon Sep 17 00:00:00 2001
|
|
|
b806ee |
From: Karl Williamson <khw@cpan.org>
|
|
|
b806ee |
Date: Fri, 15 Nov 2019 15:01:15 -0700
|
|
|
b806ee |
Subject: [PATCH] PATCH: gh#17218 memory leak
|
|
|
b806ee |
|
|
|
b806ee |
Indeed, a variable's ref count was not getting decremented.
|
|
|
b806ee |
---
|
|
|
b806ee |
regcomp.c | 1 +
|
|
|
b806ee |
1 file changed, 1 insertion(+)
|
|
|
b806ee |
|
|
|
b806ee |
diff --git a/regcomp.c b/regcomp.c
|
|
|
b806ee |
index ddac290d2bf0..de4f6f24dac8 100644
|
|
|
b806ee |
--- a/regcomp.c
|
|
|
b806ee |
+++ b/regcomp.c
|
|
|
b806ee |
@@ -17602,6 +17602,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
|
|
|
b806ee |
|
|
|
b806ee |
/* Likewise for 'posixes' */
|
|
|
b806ee |
_invlist_union(posixes, cp_list, &cp_list);
|
|
|
b806ee |
+ SvREFCNT_dec(posixes);
|
|
|
b806ee |
|
|
|
b806ee |
/* Likewise for anything else in the range that matched only
|
|
|
b806ee |
* under UTF-8 */
|