Skip to content

Commit 74ab5ac

Browse files
committed
Fix memory leak in arrow export using array structure
1 parent 339bc5d commit 74ab5ac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libImaging/Arrow.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ static void
127127
release_const_array(struct ArrowArray *array) {
128128
Imaging im = (Imaging)array->private_data;
129129

130-
if (array->n_children == 0) {
131-
ImagingDelete(im);
132-
}
130+
ImagingDelete(im);
133131

134132
// Free the buffers and the buffers array
135133
if (array->buffers) {

0 commit comments

Comments
 (0)