diff options
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r-- | gdb/python/python.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 3e2a852..90581e5 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -900,6 +900,8 @@ before_prompt_hook (const char *current_gdb_prompt) if (hook == NULL) goto fail; + make_cleanup_py_decref (hook); + if (PyCallable_Check (hook)) { PyObject *result; |