We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9206893 commit 4e88888Copy full SHA for 4e88888
1 file changed
crates/capi/src/refcount.rs
@@ -5,7 +5,7 @@ use rustpython_vm::PyObjectRef;
5
#[unsafe(no_mangle)]
6
pub unsafe extern "C" fn _Py_DecRef(op: *mut PyObject) {
7
// By dropping PyObjectRef, we will decrement the reference count.
8
- unsafe { PyObjectRef::from_raw(NonNull::new_unchecked(op)) };
+ unsafe { drop(PyObjectRef::from_raw(NonNull::new_unchecked(op))) };
9
}
10
11
0 commit comments