summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-01-15 18:19:20 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-01-15 18:19:20 +0000
commit607905347eb1bbe08eb76ed3e8e9e27622ad97ed (patch)
tree8233b938f1ac93e28d2cb63c576fd86ffc993b72 /sv.c
parent17ab79462074d95168fb4cd137197d4e6a0696b2 (diff)
downloadperl-607905347eb1bbe08eb76ed3e8e9e27622ad97ed.tar.gz
when cloning PL_regex_pad, copy SVf_BREAK flag too
p4raw-id: //depot/perl@29837
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 33cdb52da7..bfc9ee73a6 100644
--- a/sv.c
+++ b/sv.c
@@ -11025,6 +11025,8 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
newSViv(PTR2IV(CALLREGDUPE(
INT2PTR(REGEXP *, SvIVX(regex)), param))))
;
+ if (SvFLAGS(regex) & SVf_BREAK)
+ SvFLAGS(sv) |= SVf_BREAK; /* unrefcnted PL_curpm */
av_push(PL_regex_padav, sv);
}
}