This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
HTML::Parser is fixed already
[perl5.git] / perly.c
diff --git a/perly.c b/perly.c
index 0709307..3624ca3 100644 (file)
--- a/perly.c
+++ b/perly.c
@@ -614,6 +614,8 @@ Perl_yyparse (pTHX)
        }
 
        YYDSYMPRINTF ("Error: discarding", yytoken, &parser->yylval);
+       if (yy_type_tab[yytoken] == toketype_opval)
+           op_free(parser->yylval.opval);
        parser->yychar = YYEMPTY;
 
     }