X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/0f37a9942fa297c9e45e5224844c1938a45834f2..eeeb962b:/src/main.c diff --git a/src/main.c b/src/main.c index 10d5e0a8..80704466 100644 --- a/src/main.c +++ b/src/main.c @@ -119,6 +119,12 @@ main (int argc, char *argv[]) output_files (); + /* 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; }