From 53e66479289df8761b06870304d67bdaf91f247d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 20 May 2013 20:37:48 +0000 Subject: * python/py-type.c (typy_fields): Unconditionally decref 'r'. --- gdb/python/py-type.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gdb/python') 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; } -- cgit v1.1