summaryrefslogtreecommitdiff
path: root/toke.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 /toke.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 'toke.c')
-rw-r--r--toke.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index fb301444e8..55ffda33a5 100644
--- a/toke.c
+++ b/toke.c
@@ -7039,8 +7039,7 @@ Perl_start_subparse(pTHX_ I32 is_format, U32 flags)
SAVEI32(PL_subline);
save_item(PL_subname);
SAVEI32(PL_padix);
- SAVEVPTR(PL_curpad);
- SAVESPTR(PL_comppad);
+ SAVECOMPPAD();
SAVESPTR(PL_comppad_name);
SAVESPTR(PL_compcv);
SAVEI32(PL_comppad_name_fill);