* python/py-type.c (typy_fields): Unconditionally decref 'r'.

This commit is contained in:
Tom Tromey 2013-05-20 20:37:48 +00:00
parent dcf8783234
commit 53e6647928
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2013-05-20 Tom Tromey <tromey@redhat.com>
* python/py-type.c (typy_fields): Unconditionally decref 'r'.
2013-05-20 Tom Tromey <tromey@redhat.com>
* python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)

View File

@ -379,10 +379,7 @@ typy_fields (PyObject *self, PyObject *args)
return NULL;
rl = Py_BuildValue ("[O]", r);
if (rl == NULL)
{
Py_DECREF (r);
}
Py_DECREF (r);
return rl;
}