mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 11:59:27 +08:00
python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
gdb/ChangeLog: * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
2014-12-08 Doug Evans <dje@google.com>
|
||||
|
||||
* python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
|
||||
|
||||
2014-12-08 Doug Evans <dje@google.com>
|
||||
|
||||
* NEWS: Mention gdb.Objfile.owner.
|
||||
|
@ -93,9 +93,13 @@ objfpy_get_owner (PyObject *self, void *closure)
|
||||
OBJFPY_REQUIRE_VALID (obj);
|
||||
|
||||
owner = objfile->separate_debug_objfile_backlink;
|
||||
|
||||
if (owner != NULL)
|
||||
return objfile_to_objfile_object (owner);
|
||||
{
|
||||
PyObject *result = objfile_to_objfile_object (owner);
|
||||
|
||||
Py_XINCREF (result);
|
||||
return result;
|
||||
}
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user