* python/python.c (before_prompt_hook): Add cleanup to
decref 'hook'.
This commit is contained in:
parent
764123e402
commit
0430e8cba9
2 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue