summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2004-01-17 23:58:04 +0000
committerDave Mitchell <davem@fdisolutions.com>2004-01-17 23:58:04 +0000
commit58ed4fbe7c01c6db6f9e39be1bc81fb0854d3801 (patch)
treedd75a41c9d250b4665f73299d71958c15b61a2bf /scope.c
parent8f8d40ab34e002001c7e6f500a987fa1dfb3bd78 (diff)
downloadperl-58ed4fbe7c01c6db6f9e39be1bc81fb0854d3801.tar.gz
back out change #22167 "freeing a CV reference that was currently
being executed caused coredumps". The new test case sometimes locks up linux's malloc, and with Perl's malloc the test code still coredumps :-( p4raw-link: @22167 on //depot/perl: b3a3b3a1da8f5142edf3e194532b08316f895282 p4raw-id: //depot/perl@22172
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/scope.c b/scope.c
index 1da8ebe29b..2c2ce3698e 100644
--- a/scope.c
+++ b/scope.c
@@ -1045,10 +1045,8 @@ Perl_leave_scope(pTHX_ I32 base)
break;
case SAVEt_COMPPAD:
PL_comppad = (PAD*)SSPOPPTR;
- if (PL_comppad) {
+ if (PL_comppad)
PL_curpad = AvARRAY(PL_comppad);
- SvREFCNT_dec(PL_comppad);
- }
else
PL_curpad = Null(SV**);
break;