diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2007-01-04 01:03:22 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2007-01-04 01:03:22 +0000 |
commit | 7d84b8ac5458b36428c44a53c4148b3abea83f2d (patch) | |
tree | 9bbb97ee35c15a7fd970519f5f68ac0be78fbdae | |
parent | 73d95100627fbb8760df38c23d7563a42cc2b6f6 (diff) | |
download | perl-7d84b8ac5458b36428c44a53c4148b3abea83f2d.tar.gz |
make parser_free actually free the parser!
also remove two SAVEs left over from #29655
p4raw-id: //depot/perl@29680
-rw-r--r-- | perly.c | 3 | ||||
-rw-r--r-- | toke.c | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -302,7 +302,10 @@ Perl_parser_free(pTHX_ const yy_parser *parser) { S_clear_yystack(aTHX_ parser); Safefree(parser->stack); + Safefree(parser->lex_brackstack); + Safefree(parser->lex_casestack); PL_parser = parser->old_parser; + Safefree(parser); } #endif @@ -643,8 +643,6 @@ Perl_lex_start(pTHX_ SV *line) /* initialise lexer state */ - SAVEI32(PL_lex_brackets); - SAVEI32(PL_lex_casemods); SAVEI32(PL_lex_state); #ifdef PERL_MAD if (PL_lex_state == LEX_KNOWNEXT) { |