We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4984c45 commit fdfba98Copy full SHA for fdfba98
src/libImaging/Arrow.c
@@ -37,6 +37,10 @@ ReleaseExportedSchema(struct ArrowSchema *array) {
37
child->release = NULL;
38
}
39
// UNDONE -- should I be releasing the children?
40
+ free(array->children[i]);
41
+ }
42
+ if (array->children) {
43
+ free(array->children);
44
45
46
// Release dictionary
@@ -117,6 +121,7 @@ export_imaging_schema(Imaging im, struct ArrowSchema *schema) {
117
121
retval = export_named_type(schema->children[0], im->arrow_band_format, "pixel");
118
122
if (retval != 0) {
119
123
free(schema->children[0]);
124
+ free(schema->children);
120
125
schema->release(schema);
126
return retval;
127
0 commit comments