* python/py-prettyprint.c (search_pp_list): Decref 'attr'.

This commit is contained in:
Tom Tromey 2013-05-20 20:39:31 +00:00
parent 97b77b3951
commit 7d38e38f3f
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-05-20 Tom Tromey <tromey@redhat.com>
* python/py-prettyprint.c (search_pp_list): Decref 'attr'.
2013-05-20 Tom Tromey <tromey@redhat.com>
* python/py-value.c (valpy_get_dynamic_type): Simplify

View File

@ -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;