mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
* python/py-type.c (typy_fields): Unconditionally decref 'r'.
This commit is contained in:
parent
dcf8783234
commit
53e6647928
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user