mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
* python/python.c (before_prompt_hook): Add cleanup to
decref 'hook'.
This commit is contained in:
parent
764123e402
commit
0430e8cba9
@ -1,3 +1,8 @@
|
||||
2013-05-20 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* python/python.c (before_prompt_hook): Add cleanup to
|
||||
decref 'hook'.
|
||||
|
||||
2013-05-20 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* python/py-function.c (fnpy_init): Decref result of
|
||||
|
@ -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…
Reference in New Issue
Block a user