diff options
author | Artur Bergman <sky@nanisky.com> | 2001-07-12 22:57:09 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-07-12 18:11:42 +0000 |
commit | 5269aecde866056a77e32c937c7c3182bb599487 (patch) | |
tree | 6a4d3f02ce8476cafaf0d001964578472f9f08fc /sv.c | |
parent | 9114410391472d028f1e143da740e860c5045bb1 (diff) | |
download | perl-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |