mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Merge pull request #5798 from ilai-deutel/fix-webp-memory-leak
WebP: Fix memory leak during decoding on failure
This commit is contained in:
commit
06372b5e4b
|
@ -392,6 +392,7 @@ _anim_decoder_new(PyObject *self, PyObject *args) {
|
|||
return (PyObject *)decp;
|
||||
}
|
||||
}
|
||||
WebPDataClear(&(decp->data));
|
||||
}
|
||||
PyObject_Del(decp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user