From f9105049de114b6ac754bef5c80d784af78d7fed Mon Sep 17 00:00:00 2001 From: Omar Sandoval Date: Fri, 17 Nov 2023 09:11:04 -0800 Subject: [PATCH] libdrgn: python: replace return no_cleanup_ptr() with return_ptr() They're equivalent, but return_ptr() is preferred. Fixes: 085b0bc9dbfa ("libdrgn: add DRGN_OBJECT scope guard") Signed-off-by: Omar Sandoval --- libdrgn/python/object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libdrgn/python/object.c b/libdrgn/python/object.c index c7afb9fc..6e149be2 100644 --- a/libdrgn/python/object.c +++ b/libdrgn/python/object.c @@ -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)