[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 diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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
+++ b/src/parse.y
@@ -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);