]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
authorDaniel Jacobowitz <drow@false.org>
Tue, 16 Oct 2007 11:56:58 +0000 (11:56 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 16 Oct 2007 11:56:58 +0000 (11:56 +0000)
after freeing it.

gdb/ChangeLog
gdb/mi/mi-main.c

index 670ee70cedc52b9def34273bc22a86135f3504d8..25abd91a2d23a324a6c34eb10763c6805d84d255 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-16  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
+       after freeing it.
+
 2007-10-13  Joel Brobecker  <brobecker@adacore.com>
 
        * solib-target.c (solib_target_parse_libraries)
index 0c4b904470c80f579ab93df4dd048ac736a06987..0de1b132e685eae8fccc61a2f6e18d6175b93c5f 100644 (file)
@@ -1142,6 +1142,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);
@@ -1194,6 +1195,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);