summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-04 04:45:13 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-04 04:45:13 +0000
commit354992b151c6d0f4f02b9e65e8ba749a959e700d (patch)
tree128289cffb439d7ecf6f963c11291dd4447397d7 /scope.c
parente194c14e895d209252cde093bbc79234adb5b8de (diff)
downloadperl-354992b151c6d0f4f02b9e65e8ba749a959e700d.tar.gz
fix pad_alloc panic from C<my $w; sub { my($i) = @_; sub { $w } }>
p4raw-id: //depot/perl@4970
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index 7052282edb..91e0374955 100644
--- a/scope.c
+++ b/scope.c
@@ -934,6 +934,13 @@ Perl_leave_scope(pTHX_ I32 base)
}
*(I32*)&PL_hints = (I32)SSPOPINT;
break;
+ case SAVEt_COMPPAD:
+ PL_comppad = (AV*)SSPOPPTR;
+ if (PL_comppad)
+ PL_curpad = AvARRAY(PL_comppad);
+ else
+ PL_curpad = Null(SV**);
+ break;
default:
Perl_croak(aTHX_ "panic: leave_scope inconsistency");
}