diff src/toplev.cc @ 13973:2c664266e9d0

clean up parser memory on exit * lex.h, lex.ll (clear_all_buffers, cleanup_parser): New functions. * toplev.cc (clean_up_and_exit): Call cleanup_parser here.
author John W. Eaton <jwe@octave.org>
date Fri, 02 Dec 2011 03:51:37 -0500 (2011-12-02)
parents c93b953f7d54
children 5f8bc2f145f5
line wrap: on
line diff
--- a/src/toplev.cc
+++ b/src/toplev.cc
@@ -676,6 +676,8 @@
   // Clean up symbol table.
   SAFE_CALL (symbol_table::cleanup, ());
 
+  SAFE_CALL (cleanup_parser, ());
+
   SAFE_CALL (sysdep_cleanup, ())
 
   if (octave_exit)