From 6ed15ea1cd48a1b8247217db34582bd29641c56e Mon Sep 17 00:00:00 2001 From: Skal Date: Tue, 27 Nov 2018 11:59:31 +0100 Subject: [PATCH] fix unprobable leak in webp_sdl.c Change-Id: I26f21f4a09349bf7e7cede0d906f55f497235ff6 --- extras/vwebp_sdl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/extras/vwebp_sdl.c b/extras/vwebp_sdl.c index d1ee41f9..762ad24a 100644 --- a/extras/vwebp_sdl.c +++ b/extras/vwebp_sdl.c @@ -71,6 +71,7 @@ int main(int argc, char* argv[]) { goto Error; } if (webp_size != (size_t)(int)webp_size) { + free((void*)webp); fprintf(stderr, "File too large.\n"); goto Error; }