* 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:
parent
72ff8829c1
commit
3d4a3c3ea2
4 changed files with 23 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue