diff options
Diffstat (limited to 'gdb/python/py-cmd.c')
-rw-r--r-- | gdb/python/py-cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-cmd.c b/gdb/python/py-cmd.c index ba765e0..22eff25 100644 --- a/gdb/python/py-cmd.c +++ b/gdb/python/py-cmd.c @@ -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; |