mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-23 18:26:47 +08:00
* python/py-cmd.c (cmdpy_completer): Use explicit decref.
* python/py-param.c (get_set_value, get_show_value): Use explicit decrefs. * python/python.c (start_type_printers, apply_type_printers): Use explicit decrefs.
This commit is contained in:
@ -244,7 +244,6 @@ cmdpy_completer (struct cmd_list_element *command,
|
||||
PyErr_Clear ();
|
||||
goto done;
|
||||
}
|
||||
make_cleanup_py_decref (resultobj);
|
||||
|
||||
result = NULL;
|
||||
if (PyInt_Check (resultobj))
|
||||
@ -300,6 +299,7 @@ cmdpy_completer (struct cmd_list_element *command,
|
||||
|
||||
done:
|
||||
|
||||
Py_XDECREF (resultobj);
|
||||
do_cleanups (cleanup);
|
||||
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user