X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/900c5db5379673765a18c6746fd9139a278cc9a9..b25d88f6d2e2f4b59927aacecdc0a9e44a34b5d9:/src/main.c?ds=sidebyside diff --git a/src/main.c b/src/main.c index 04957a2b..ce470f3a 100644 --- a/src/main.c +++ b/src/main.c @@ -24,6 +24,7 @@ #include "bitset_stats.h" #include "bitset.h" #include "getargs.h" +#include "struniq.h" #include "symtab.h" #include "gram.h" #include "files.h" @@ -54,6 +55,8 @@ main (int argc, char *argv[]) (void) bindtextdomain (PACKAGE, LOCALEDIR); (void) textdomain (PACKAGE); + struniqs_new (); + getargs (argc, argv); time_report = trace_flag & trace_time; @@ -158,13 +161,12 @@ main (int argc, char *argv[]) reduce_free (); conflicts_free (); grammar_free (); - /* FIXME: We are leaking all the other file names. */ - free (infile); /* The scanner memory cannot be released right after parsing, as it contains things such as user actions, prologue, epilogue etc. */ scanner_free (); muscle_free (); + struniqs_free (); /* If using alloca.c, flush the alloca'ed memory for the benefit of people running Bison as a library in IDEs. */ #if C_ALLOCA