aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-20 20:39:31 +0000
committerTom Tromey <tromey@redhat.com>2013-05-20 20:39:31 +0000
commit7d38e38f3f6d673175bf706c404bc353f461af98 (patch)
treeeae920b6cf2aec25714916de4e1fed3f8ac70b7e /gdb/python
parent97b77b3951bc72a15481a82fca2fd3ee9dd3d1d8 (diff)
downloadgdb-7d38e38f3f6d673175bf706c404bc353f461af98.zip
gdb-7d38e38f3f6d673175bf706c404bc353f461af98.tar.gz
gdb-7d38e38f3f6d673175bf706c404bc353f461af98.tar.bz2
* python/py-prettyprint.c (search_pp_list): Decref 'attr'.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-prettyprint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c
index aa9476e..8c45cd6 100644
--- a/gdb/python/py-prettyprint.c
+++ b/gdb/python/py-prettyprint.c
@@ -69,6 +69,7 @@ search_pp_list (PyObject *list, PyObject *value)
if (!attr)
return NULL;
cmp = PyObject_IsTrue (attr);
+ Py_DECREF (attr);
if (cmp == -1)
return NULL;