fix unprobable leak in webp_sdl.c

Change-Id: I26f21f4a09349bf7e7cede0d906f55f497235ff6
This commit is contained in:
Skal 2018-11-27 11:59:31 +01:00
parent 22bbb24ea8
commit 6ed15ea1cd

View File

@ -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;
}