diff --git a/parse.y b/parse.y index 50800708ec..8a1bda1b0c 100644 --- a/parse.y +++ b/parse.y @@ -7618,6 +7618,7 @@ yycompile0(VALUE arg) RUBY_DTRACE_PARSE_HOOK(END); p->debug_lines = 0; + xfree(p->lex.strterm); p->lex.strterm = 0; p->lex.pcur = p->lex.pbeg = p->lex.pend = 0; if (n || p->error_p) {