summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorArtur Bergman <sky@nanisky.com>2001-08-30 08:22:31 +0000
committerArtur Bergman <sky@nanisky.com>2001-08-30 08:22:31 +0000
commit1cc8b4c566f7901a54e4b576f09608beb4c81f86 (patch)
tree09cb12649a6b54703bf0472745a36955c2fccf7d /perl.c
parentdf8513ebccb346c715b201053776d8f657fee6c9 (diff)
downloadperl-1cc8b4c566f7901a54e4b576f09608beb4c81f86.tar.gz
Introduces SvREPADTMP(sv) that marks a repad SvIV as a offset
on the pad. Fixes coredumps in cleanups introduced by Change 11755 p4raw-id: //depot/perl@11790
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 51cb92757a..820f65d3bd 100644
--- a/perl.c
+++ b/perl.c
@@ -496,7 +496,10 @@ perl_destruct(pTHXx)
* flag is set in regexec.c:S_regtry
*/
SvFLAGS(resv) &= ~SVf_BREAK;
- }
+ }
+ else if(SvREPADTMP(resv)) {
+ SvREPADTMP_off(resv);
+ }
else {
ReREFCNT_dec(re);
}