diff options
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; |