summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorArtur Bergman <sky@nanisky.com>2001-07-12 22:57:09 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2001-07-12 18:11:42 +0000
commit5269aecde866056a77e32c937c7c3182bb599487 (patch)
tree6a4d3f02ce8476cafaf0d001964578472f9f08fc /sv.c
parent9114410391472d028f1e143da740e860c5045bb1 (diff)
downloadperl-5269aecde866056a77e32c937c7c3182bb599487.tar.gz
fixes perl_clone of perl_clone
Message-ID: <B773BFA4.236B%artur@contiller.se> p4raw-id: //depot/perl@11325
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 9dabaff097..2bf9adaee4 100644
--- a/sv.c
+++ b/sv.c
@@ -9791,7 +9791,10 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
SV** regexen = AvARRAY((AV*)proto_perl->Iregex_padav);
for(i = 0; i <= len; i++) {
av_push(PL_regex_padav,
- newSViv((IV)re_dup((REGEXP *)SvIV(regexen[i]), param)));
+ SvREFCNT_inc(
+ newSViv((IV)re_dup((REGEXP *)
+ SvIVX(regexen[i]), param))
+ ));
}
}
PL_regex_pad = AvARRAY(PL_regex_padav);