bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06-scanner-free.patch


From: Akim Demaille
Subject: 06-scanner-free.patch
Date: Fri, 14 Jun 2002 19:28:48 +0200

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * src/main.c (main): Invoke scanner_free.
        
        
Index: src/main.c
--- src/main.c Fri, 14 Jun 2002 18:30:31 +0200 akim
+++ src/main.c Fri, 14 Jun 2002 19:04:05 +0200 akim
@@ -110,6 +110,10 @@
   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.  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]