Close input file handler yyin after yyparse

This commit is contained in:
Homer Hsing 2012-09-06 15:33:41 +08:00 committed by Damien Lespiau
parent f282ea689b
commit 302ca73198

View File

@ -275,6 +275,9 @@ int main(int argc, char **argv)
err = yyparse();
if (yyin)
fclose(yyin);
if (err || errors)
exit (1);