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.
2 parents ecf011e + 585b2f5 commit cdaa29eCopy full SHA for cdaa29e
src/_imaging.c
@@ -267,6 +267,9 @@ PyObject *
267
ExportArrowSchemaPyCapsule(ImagingObject *self) {
268
struct ArrowSchema *schema =
269
(struct ArrowSchema *)calloc(1, sizeof(struct ArrowSchema));
270
+ if (!schema) {
271
+ return ArrowError(IMAGING_CODEC_MEMORY);
272
+ }
273
int err = export_imaging_schema(self->image, schema);
274
if (err == 0) {
275
return PyCapsule_New(schema, "arrow_schema", ReleaseArrowSchemaPyCapsule);
0 commit comments