forked from Imagelibrary/binutils-gdb
* python/python.c (before_prompt_hook): Add cleanup to
decref 'hook'.
This commit is contained in:
@@ -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>
|
2013-05-20 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* python/py-function.c (fnpy_init): Decref result of
|
* python/py-function.c (fnpy_init): Decref result of
|
||||||
|
|||||||
@@ -900,6 +900,8 @@ before_prompt_hook (const char *current_gdb_prompt)
|
|||||||
if (hook == NULL)
|
if (hook == NULL)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
make_cleanup_py_decref (hook);
|
||||||
|
|
||||||
if (PyCallable_Check (hook))
|
if (PyCallable_Check (hook))
|
||||||
{
|
{
|
||||||
PyObject *result;
|
PyObject *result;
|
||||||
|
|||||||
Reference in New Issue
Block a user