d701438448
(i.e. will be included into forthcoming 5.10.1).
16 lines
555 B
Text
16 lines
555 B
Text
# http://rt.perl.org/rt3/Public/Bug/Display.html?id=59516
|
|
# http://perl5.git.perl.org/perl.git/commitdiff/b023a8eeff463528d4a2b46396f79056c0ef9677?hp=a954f6ee3112c0edfbc59783d1b424d995122784
|
|
diff --git a/regcomp.c b/regcomp.c
|
|
index 54347cc..68cc58c 100644
|
|
--- regcomp.c
|
|
+++ regcomp.c
|
|
@@ -8350,6 +8350,9 @@ parseit:
|
|
*STRING(ret)= (char)value;
|
|
STR_LEN(ret)= 1;
|
|
RExC_emit += STR_SZ(1);
|
|
+ if (listsv) {
|
|
+ SvREFCNT_dec(listsv);
|
|
+ }
|
|
return ret;
|
|
}
|
|
/* optimize case-insensitive simple patterns (e.g. /[a-z]/i) */
|