mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-22 17:23:06 +00:00
libdrgn: python: replace return no_cleanup_ptr() with return_ptr()
They're equivalent, but return_ptr() is preferred.
Fixes: 085b0bc9db
("libdrgn: add DRGN_OBJECT scope guard")
Signed-off-by: Omar Sandoval <osandov@osandov.com>
This commit is contained in:
parent
fedad60425
commit
f9105049de
@ -587,7 +587,7 @@ static PyObject *DrgnObject_compound_value(struct drgn_object *obj,
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
return no_cleanup_ptr(dict);
|
||||
return_ptr(dict);
|
||||
}
|
||||
|
||||
static PyObject *DrgnObject_array_value(struct drgn_object *obj,
|
||||
@ -624,7 +624,7 @@ static PyObject *DrgnObject_array_value(struct drgn_object *obj,
|
||||
return NULL;
|
||||
PyList_SET_ITEM(list, i, element_value);
|
||||
}
|
||||
return no_cleanup_ptr(list);
|
||||
return_ptr(list);
|
||||
}
|
||||
|
||||
static PyObject *DrgnObject_value_impl(struct drgn_object *obj)
|
||||
|
Loading…
Reference in New Issue
Block a user