]> git.saurik.com Git - bison.git/blobdiff - tests/calc.at
Don't let Bison leak memory except when it complains.
[bison.git] / tests / calc.at
index a3a76feb8dbe028b64e13a1ab5d6fe5807f7d514..2cc68031eb2f516b51a0185d76c141cc0367bf54 100644 (file)
@@ -337,6 +337,7 @@ main (int argc, const char **argv)
 ]AT_SKEL_CC_IF([], [m4_bmatch([$4], [%debug],
 [  yydebug = 1;])])[
   status = yyparse (]AT_PARAM_IF([&result, &count])[);
+  fclose (input);
   if (global_result != result)
     abort ();
   if (global_count != count)