Skip to content

Check PyCapsule_New return value#9691

Open
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:pycapsule
Open

Check PyCapsule_New return value#9691
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:pycapsule

Conversation

@radarhere

Copy link
Copy Markdown
Member

PyCapsule_New may return NULL,

Pillow/src/_imaging.c

Lines 3770 to 3773 in 87e7883

PyObject *capsule = PyCapsule_New(self->image, IMAGING_MAGIC, _ptr_destructor);
if (!capsule) {
return NULL;
}

but this has not always been applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant