summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-08-10 19:45:45 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-08-10 19:45:45 +0000
commit2affe78f01f9cd3aae1b214beb9140e1fe830c7d (patch)
tree76a5be967500a95926f6a765f42c83d196af278e /pad.c
parent6cbc0cd1d96dba8bcda440e8ed6dde3e7b3a050b (diff)
downloadperl-2affe78f01f9cd3aae1b214beb9140e1fe830c7d.tar.gz
Retract #20597, too many resulting core dumps.
p4raw-id: //depot/perl@20602
Diffstat (limited to 'pad.c')
-rw-r--r--pad.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/pad.c b/pad.c
index a121e5302e..90d99795a5 100644
--- a/pad.c
+++ b/pad.c
@@ -258,15 +258,9 @@ Perl_pad_undef(pTHX_ CV* cv)
{
assert(CvWEAKOUTSIDE(innercv));
CvWEAKOUTSIDE_off(innercv);
+ CvOUTSIDE(innercv) = outercv;
CvOUTSIDE_SEQ(innercv) = seq;
- /* don't relink to grandfather if he's being freed */
- if (SvREFCNT(outercv)) {
- CvOUTSIDE(innercv) = outercv;
- SvREFCNT_inc(outercv);
- }
- else {
- CvOUTSIDE(innercv) = Nullcv;
- }
+ SvREFCNT_inc(outercv);
}
}
}