fix py-breakpoint.c
One return path in bppy_get_commands was missing a do_cleanups call. * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups along all return paths.
This commit is contained in:
parent
e12fefc804
commit
b862ce75d2
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-05-30 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
|
||||||
|
along all return paths.
|
||||||
|
|
||||||
2013-05-30 Tom Tromey <tromey@redhat.com>
|
2013-05-30 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* cli/cli-logging.c (set_logging_redirect): Unconditionally
|
* cli/cli-logging.c (set_logging_redirect): Unconditionally
|
||||||
|
|
|
@ -489,7 +489,11 @@ bppy_get_commands (PyObject *self, void *closure)
|
||||||
print_command_lines (current_uiout, breakpoint_commands (bp), 0);
|
print_command_lines (current_uiout, breakpoint_commands (bp), 0);
|
||||||
}
|
}
|
||||||
ui_out_redirect (current_uiout, NULL);
|
ui_out_redirect (current_uiout, NULL);
|
||||||
GDB_PY_HANDLE_EXCEPTION (except);
|
if (except.reason < 0)
|
||||||
|
{
|
||||||
|
do_cleanups (chain);
|
||||||
|
GDB_PY_HANDLE_EXCEPTION (except);
|
||||||
|
}
|
||||||
|
|
||||||
cmdstr = ui_file_xstrdup (string_file, &length);
|
cmdstr = ui_file_xstrdup (string_file, &length);
|
||||||
make_cleanup (xfree, cmdstr);
|
make_cleanup (xfree, cmdstr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue