* 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:
Tom Tromey 2013-05-20 20:34:49 +00:00
parent 72ff8829c1
commit 3d4a3c3ea2
4 changed files with 23 additions and 15 deletions

View file

@ -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;