diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-20 20:39:31 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-20 20:39:31 +0000 |
commit | 7d38e38f3f6d673175bf706c404bc353f461af98 (patch) | |
tree | eae920b6cf2aec25714916de4e1fed3f8ac70b7e /gdb/python | |
parent | 97b77b3951bc72a15481a82fca2fd3ee9dd3d1d8 (diff) | |
download | gdb-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.c | 1 |
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; |