]> git.saurik.com Git - bison.git/blobdiff - src/main.c
Update TODO.
[bison.git] / src / main.c
index 674c56d5fd7634763dc33643a820a9fdfcb1115e..8070446683212b4a47598e89431979d34588d70f 100644 (file)
@@ -119,7 +119,13 @@ main (int argc, char *argv[])
 
   output_files ();
 
-  exit (complain_message_count ? 1 : 0);
+  /* If using alloca.c, flush the alloca'ed memory for the benefit of
+     people running Bison as a library in IDEs.  */
+#if C_ALLOCA
+    alloca (0);
+#endif
+
+  return complain_message_count ? EXIT_FAILURE : EXIT_SUCCESS;
 }
 \f
 /* Abort for an internal error denoted by string S.  */