mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
Fix memory leak in arrow export using array structure
This commit is contained in:
parent
339bc5db93
commit
74ab5ac4cd
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user