mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-23 10:17:53 +08:00
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:
@ -489,7 +489,11 @@ bppy_get_commands (PyObject *self, void *closure)
|
||||
print_command_lines (current_uiout, breakpoint_commands (bp), 0);
|
||||
}
|
||||
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);
|
||||
make_cleanup (xfree, cmdstr);
|
||||
|
Reference in New Issue
Block a user