From: Michael Snyder Date: Fri, 10 Aug 2007 21:52:38 +0000 (+0000) Subject: 2007-08-10 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=412bbd6c82cd6efe30e3af4538b7677f5ce911bc;p=binutils-gdb.git 2007-08-10 Michael Snyder * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4d854ee2f87..389fa484f4d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2007-08-10 Michael Snyder + * 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 9c5aeb9f221..377852ee41f 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; }