X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f0451dba71a80adebe53a11db00c00bac7c70ba7..16c4a35041d6f9bd581134f99e3d6e915e48eb8b:/src/main.c diff --git a/src/main.c b/src/main.c index 62436a80..33994c9b 100644 --- a/src/main.c +++ b/src/main.c @@ -117,6 +117,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; }