2007-08-10 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Fri, 10 Aug 2007 21:52:38 +0000 (21:52 +0000)
committerMichael Snyder <msnyder@vmware.com>
Fri, 10 Aug 2007 21:52:38 +0000 (21:52 +0000)
* mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.

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

index 4d854ee2f879d76be0ea1cd8ecf8c41ee4238d04..389fa484f4d856a5a3c2e270e15c6f72c09499e9 100644 (file)
@@ -1,5 +1,7 @@
 2007-08-10  Michael Snyder  <msnyder@access-company.com>
 
+       * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
+
        * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
 
        * solib-svr4.c (enable_break): Don't free tmp_pathname until
index 9c5aeb9f221b8853c0de3ec9221b5629aca8c885..377852ee41ffe2bb0c918b2897067e59ae8b15c2 100644 (file)
@@ -691,6 +691,7 @@ mi_cmd_data_evaluate_expression (char *command, char **argv, int argc)
   if (argc != 1)
     {
       mi_error_message = xstrprintf ("mi_cmd_data_evaluate_expression: Usage: -data-evaluate-expression expression");
+      ui_out_stream_delete (stb);
       return MI_CMD_ERROR;
     }