summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorSimon Cozens <simon@netthink.co.uk>2001-08-23 13:06:36 +0100
committerArtur Bergman <sky@nanisky.com>2001-08-23 10:36:02 +0000
commitc7aa9c719fed44ee53740efe52fa7803093315e2 (patch)
tree808ff31696c52433a49df76649ae82c4d718b2dd /op.c
parentd80aa5594cb0736b9d4bd083ce9a6fa2f0fea457 (diff)
downloadperl-c7aa9c719fed44ee53740efe52fa7803093315e2.tar.gz
Re: [ID 20010822.001] Freeing pads after parse error
Message-ID: <20010823120636.A9961@netthink.co.uk> p4raw-id: //depot/perl@11732
Diffstat (limited to 'op.c')
-rw-r--r--op.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/op.c b/op.c
index 677fe7a231..6dcd7463f7 100644
--- a/op.c
+++ b/op.c
@@ -2147,7 +2147,8 @@ Perl_block_end(pTHX_ I32 floor, OP *seq)
{
int needblockscope = PL_hints & HINT_BLOCK_SCOPE;
OP* retval = scalarseq(seq);
- LEAVE_SCOPE(floor);
+ if (!PL_error_count)
+ LEAVE_SCOPE(floor);
PL_pad_reset_pending = FALSE;
PL_compiling.op_private = PL_hints;
if (needblockscope)