changeset 5309:15031c6fab31

[project @ 2005-04-27 07:58:14 by jwe]
author jwe
date Wed, 27 Apr 2005 07:58:14 +0000
parents bc8d6ebb6ee1
children 2fbcdc356fc7
files src/ChangeLog src/parse.y
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Apr 27 05:08:19 2005 +0000
+++ b/src/ChangeLog	Wed Apr 27 07:58:14 2005 +0000
@@ -1,6 +1,7 @@
 2005-04-27  John W. Eaton  <jwe@octave.org>
 
 	* parse.y: (safe_fclose): Delete comment list to avoid memory leak.
+	(parse_and_execute (FILE *)): Also save and restore global_command.
 
 2005-04-26  John W. Eaton  <jwe@octave.org>
 
--- a/src/parse.y	Wed Apr 27 05:08:19 2005 +0000
+++ b/src/parse.y	Wed Apr 27 07:58:14 2005 +0000
@@ -2845,6 +2845,8 @@
 {
   unwind_protect::begin_frame ("parse_and_execute");
 
+  unwind_protect_ptr (global_command);
+
   YY_BUFFER_STATE old_buf = current_buffer ();
   YY_BUFFER_STATE new_buf = create_buffer (f);