diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-20 20:13:28 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-20 20:13:28 +0000 |
commit | 0430e8cba970e103a67e6066b7475f1fd8bae184 (patch) | |
tree | f2f4eb583d7ad45a2ebe57f61d743ad7c7b27527 /gdb/python | |
parent | 764123e402e5f69fff1519b16150bc0e710f470c (diff) | |
download | gdb-0430e8cba970e103a67e6066b7475f1fd8bae184.zip gdb-0430e8cba970e103a67e6066b7475f1fd8bae184.tar.gz gdb-0430e8cba970e103a67e6066b7475f1fd8bae184.tar.bz2 |
* python/python.c (before_prompt_hook): Add cleanup to
decref 'hook'.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/python.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 3e2a852..90581e5 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -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; |