* python/py-prettyprint.c (search_pp_list): Decref 'attr'.
authorTom Tromey <tromey@redhat.com>
Mon, 20 May 2013 20:39:31 +0000 (20:39 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 20 May 2013 20:39:31 +0000 (20:39 +0000)
gdb/ChangeLog
gdb/python/py-prettyprint.c

index 99fc791cf004c5107310adab75833b19b35d96ae..160aeacce82c1da0836dc1374dd8a5fd9ca6151b 100644 (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
index aa9476ed06c9db98a5339020f035ba907c9f4990..8c45cd6a6fa69d6001478f729e707ce056333956 100644 (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;