Skip to content

Commit

Permalink
Merge pull request #5798 from ilai-deutel/fix-webp-memory-leak
Browse files Browse the repository at this point in the history
WebP: Fix memory leak during decoding on failure
  • Loading branch information
radarhere committed Dec 5, 2021
2 parents fa2bbf7 + 596e80c commit 06372b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/_webp.c
Expand Up @@ -392,6 +392,7 @@ _anim_decoder_new(PyObject *self, PyObject *args) {
return (PyObject *)decp;
}
}
WebPDataClear(&(decp->data));
}
PyObject_Del(decp);
}
Expand Down

0 comments on commit 06372b5

Please sign in to comment.