2007-08-10 Michael Snyder <msnyder@access-company.com>
* mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
This commit is contained in:
parent
518f9d3cd4
commit
76bd6e0b6e
|
@ -1,5 +1,7 @@
|
||||||
2007-08-10 Michael Snyder <msnyder@access-company.com>
|
2007-08-10 Michael Snyder <msnyder@access-company.com>
|
||||||
|
|
||||||
|
* mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
|
||||||
|
|
||||||
* solib-svr4.c (enable_break): Don't free tmp_pathname until
|
* solib-svr4.c (enable_break): Don't free tmp_pathname until
|
||||||
after closing bfd.
|
after closing bfd.
|
||||||
|
|
||||||
|
|
|
@ -373,7 +373,10 @@ mi_cmd_var_list_children (char *command, char **argv, int argc)
|
||||||
print_values = PRINT_NO_VALUES;
|
print_values = PRINT_NO_VALUES;
|
||||||
|
|
||||||
if (numchild <= 0)
|
if (numchild <= 0)
|
||||||
return MI_CMD_DONE;
|
{
|
||||||
|
xfree (childlist);
|
||||||
|
return MI_CMD_DONE;
|
||||||
|
}
|
||||||
|
|
||||||
if (mi_version (uiout) == 1)
|
if (mi_version (uiout) == 1)
|
||||||
cleanup_children = make_cleanup_ui_out_tuple_begin_end (uiout, "children");
|
cleanup_children = make_cleanup_ui_out_tuple_begin_end (uiout, "children");
|
||||||
|
|
Loading…
Reference in New Issue