aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/mi/mi-main.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4d854ee..389fa48 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 9c5aeb9..377852e 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -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;
}