diff options
Diffstat (limited to 'gdb/python/py-symtab.c')
-rw-r--r-- | gdb/python/py-symtab.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/python/py-symtab.c b/gdb/python/py-symtab.c index be7fb3e..9bb20da 100644 --- a/gdb/python/py-symtab.c +++ b/gdb/python/py-symtab.c @@ -117,13 +117,10 @@ static PyObject * stpy_get_objfile (PyObject *self, void *closure) { struct symtab *symtab = NULL; - PyObject *result; STPY_REQUIRE_VALID (self, symtab); - result = objfile_to_objfile_object (SYMTAB_OBJFILE (symtab)); - Py_XINCREF (result); - return result; + return objfile_to_objfile_object (SYMTAB_OBJFILE (symtab)).release (); } /* Getter function for symtab.producer. */ |