diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-04 04:45:13 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-04 04:45:13 +0000 |
commit | 354992b151c6d0f4f02b9e65e8ba749a959e700d (patch) | |
tree | 128289cffb439d7ecf6f963c11291dd4447397d7 /scope.c | |
parent | e194c14e895d209252cde093bbc79234adb5b8de (diff) | |
download | perl-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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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"); } |