Release buffer

This commit is contained in:
Andrew Murray 2023-02-27 09:48:41 +11:00
parent 7e8b11b159
commit 9c98f4d515

View File

@ -134,6 +134,7 @@ _decode(ImagingDecoderObject *decoder, PyObject *args) {
ImagingSectionLeave(&cookie);
}
PyBuffer_Release(&buffer);
return Py_BuildValue("ii", status, decoder->state.errcode);
}