2011-02-27 Michael Snyder <msnyder@vmware.com>
* python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
This commit is contained in:
parent
6dc3565dc4
commit
4c2d572468
2 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
2011-03-11 Michael Snyder <msnyder@vmware.com>
|
||||
|
||||
* python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
|
||||
|
||||
* top.c (set_verbose): Assert showcmd was found.
|
||||
|
||||
2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
|
||||
|
|
|
@ -489,12 +489,12 @@ bppy_get_commands (PyObject *self, void *closure)
|
|||
print_command_lines (uiout, breakpoint_commands (bp), 0);
|
||||
}
|
||||
ui_out_redirect (uiout, NULL);
|
||||
cmdstr = ui_file_xstrdup (string_file, &length);
|
||||
GDB_PY_HANDLE_EXCEPTION (except);
|
||||
|
||||
cmdstr = ui_file_xstrdup (string_file, &length);
|
||||
make_cleanup (xfree, cmdstr);
|
||||
result = PyString_Decode (cmdstr, strlen (cmdstr), host_charset (), NULL);
|
||||
do_cleanups (chain);
|
||||
xfree (cmdstr);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue