diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-type.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 63629fe..337e307 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -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; } |