mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 02:37:23 +08:00
* python/python.c (before_prompt_hook): Add cleanup to
decref 'hook'.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user