diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-10-16 11:55:17 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-10-16 11:55:17 +0000 |
commit | 62c018fe4a6de89d710e84b7efffe2462fa435cd (patch) | |
tree | f3bc171e80a10748791f31458baa5bf7e6782359 /gdb/mi | |
parent | 415d93d6d65890b50c4a9436f8d0fc2e83c53d38 (diff) | |
download | gdb-62c018fe4a6de89d710e84b7efffe2462fa435cd.zip gdb-62c018fe4a6de89d710e84b7efffe2462fa435cd.tar.gz gdb-62c018fe4a6de89d710e84b7efffe2462fa435cd.tar.bz2 |
* mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
after freeing it.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 93e28bf..5c9d63d 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -1161,6 +1161,7 @@ captured_mi_execute_command (struct ui_out *uiout, void *data) fputs_unfiltered ("^error,msg=\"", raw_stdout); fputstr_unfiltered (mi_error_message, '"', raw_stdout); xfree (mi_error_message); + mi_error_message = NULL; fputs_unfiltered ("\"\n", raw_stdout); } mi_out_rewind (uiout); @@ -1213,6 +1214,7 @@ captured_mi_execute_command (struct ui_out *uiout, void *data) fputs_unfiltered ("^error,msg=\"", raw_stdout); fputstr_unfiltered (mi_error_message, '"', raw_stdout); xfree (mi_error_message); + mi_error_message = NULL; fputs_unfiltered ("\"\n", raw_stdout); } mi_out_rewind (uiout); |