* 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
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue