aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-08-10 21:52:38 +0000
committerMichael Snyder <msnyder@vmware.com>2007-08-10 21:52:38 +0000
commit412bbd6c82cd6efe30e3af4538b7677f5ce911bc (patch)
tree95b8fdac502a86cb228ac19b75ea0affff67f7fd /gdb
parent76bd6e0b6e6079d4da328e7fc8eec3897703b4af (diff)
downloadgdb-412bbd6c82cd6efe30e3af4538b7677f5ce911bc.zip
gdb-412bbd6c82cd6efe30e3af4538b7677f5ce911bc.tar.gz
gdb-412bbd6c82cd6efe30e3af4538b7677f5ce911bc.tar.bz2
2007-08-10 Michael Snyder <msnyder@access-company.com>
* mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
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;
}