Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebP: Fix memory leak during decoding on failure #5798

Merged
merged 1 commit into from Dec 5, 2021

Commits on Oct 28, 2021

  1. WebP: Fix memory leak during decoding on failure

    When creating the `WebPAnimDecoder` object, we create a `WebPAnimDecoderObject` and populate its data using `WebPDataCopy()`.
    
    Subsequently, if either `WebPAnimDecoderNew()` or `WebPAnimDecoderGetInfo()` fails, data is not currently deallocated. This commit clears the decoder object's data in that situation.
    ilai-deutel committed Oct 28, 2021
    Copy the full SHA
    596e80c View commit details
    Browse the repository at this point in the history