Fix memory leak in arrow export using array structure

This commit is contained in:
Eric Soroos 2025-05-11 23:46:21 +02:00
parent 339bc5db93
commit 74ab5ac4cd

View File

@ -127,9 +127,7 @@ static void
release_const_array(struct ArrowArray *array) { release_const_array(struct ArrowArray *array) {
Imaging im = (Imaging)array->private_data; Imaging im = (Imaging)array->private_data;
if (array->n_children == 0) {
ImagingDelete(im); ImagingDelete(im);
}
// Free the buffers and the buffers array // Free the buffers and the buffers array
if (array->buffers) { if (array->buffers) {