From 4515534cd2024f8930bf8fa09745f3fdb46f0009 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 14 Jun 2002 17:37:12 +0000 Subject: [PATCH] * src/main.c (main): Invoke scanner_free. --- ChangeLog | 5 +++++ src/main.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 632b63c8..e61d2e44 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-06-14 Akim Demaille + + * src/main.c (main): Invoke scanner_free. + + 2002-06-14 Akim Demaille * src/output.c (m4_invoke): Extracted from... diff --git a/src/main.c b/src/main.c index 9cdd5818..2eb8f150 100644 --- a/src/main.c +++ b/src/main.c @@ -110,6 +110,10 @@ main (int argc, char *argv[]) free_nullable (); free_derives (); grammar_free (); + + /* The scanner memory cannot be released right after parsing, as it + contains things such as user actions, prologue, epilogue etc. */ + scanner_free (); muscle_free (); /* If using alloca.c, flush the alloca'ed memory for the benefit of people running Bison as a library in IDEs. */ -- 2.45.2