Skip to content

Commit 3b7f834

Browse files
committed
Revert "Enhance drop_stream function to retrieve and free original stream pointer for improved memory management"
This reverts commit 2e8fce6.
1 parent 2e8fce6 commit 3b7f834

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/dataframe.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ unsafe extern "C" fn drop_stream(capsule: *mut ffi::PyObject) {
6666
return;
6767
}
6868
let name = ARROW_STREAM_NAME.get_or_init(|| CString::new("arrow_array_stream").unwrap());
69-
// Retrieve the original stream pointer and free it when the capsule drops
7069
let stream_ptr = ffi::PyCapsule_GetPointer(capsule, name.as_ptr()) as *mut FFI_ArrowArrayStream;
7170
if !stream_ptr.is_null() {
7271
drop(Box::from_raw(stream_ptr));

0 commit comments

Comments
 (0)