mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-24 10:09:20 +01:00
bugfix: unpack_object_from_bv() and unpack_object_from_idb() were leaking objects
This commit is contained in:
parent
ecb4232040
commit
3e0343daf5
@ -230,7 +230,9 @@ PyObject *py_unpack_object_from_idb(
|
||||
// Conversion failed?
|
||||
if ( err != CIP_OK )
|
||||
return Py_BuildValue("(ii)", 0, err);
|
||||
return Py_BuildValue("(iO)", 1, py_ret);
|
||||
PyObject *py_result = Py_BuildValue("(iO)", 1, py_ret);
|
||||
Py_DECREF(py_ret);
|
||||
return py_result;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
@ -270,7 +272,9 @@ PyObject *py_unpack_object_from_bv(
|
||||
// Conversion failed?
|
||||
if ( err != CIP_OK )
|
||||
return Py_BuildValue("(ii)", 0, err);
|
||||
return Py_BuildValue("(iO)", 1, py_ret);
|
||||
PyObject *py_result = Py_BuildValue("(iO)", 1, py_ret);
|
||||
Py_DECREF(py_ret);
|
||||
return py_result;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user