Skip to content

Commit a694b84

Browse files
committed
Freeing the avif pixel memory on all exits from the function
1 parent e3627b7 commit a694b84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/_avif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ _decoder_get_frame(AvifDecoderObject *self, PyObject *args) {
811811

812812
if (rgb.height > PY_SSIZE_T_MAX / rgb.rowBytes) {
813813
PyErr_SetString(PyExc_MemoryError, "Integer overflow in pixel size");
814-
// UNDONE avifRGBImageFreePixels(&rgb); ??
814+
avifRGBImageFreePixels(&rgb);
815815
return NULL;
816816
}
817817

0 commit comments

Comments
 (0)