summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-01-03 22:17:48 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-01-03 22:17:48 +0000
commit7c197c94dc644853d0512a443fd0e99a5f287ad0 (patch)
tree1ba6b14de8f6cd9ad2c4814d1c35f491e4b74cad /scope.c
parent0e4c4423f4f1412e4eeb73b8af7f846ea7b0c4bc (diff)
downloadperl-7c197c94dc644853d0512a443fd0e99a5f287ad0.tar.gz
handle cloning of parsers on the save stack
p4raw-id: //depot/perl@29678
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index abe9a0542b..d15d2d93c1 100644
--- a/scope.c
+++ b/scope.c
@@ -1023,6 +1023,10 @@ Perl_leave_scope(pTHX_ I32 base)
Copy(state, &PL_reg_state, 1, struct re_save_state);
}
break;
+ case SAVEt_PARSER:
+ ptr = SSPOPPTR;
+ parser_free((yy_parser *) ptr);
+ break;
default:
Perl_croak(aTHX_ "panic: leave_scope inconsistency");
}