diff --git a/examples/cwebp.c b/examples/cwebp.c index 1d472dfa..d2484f1c 100644 --- a/examples/cwebp.c +++ b/examples/cwebp.c @@ -358,7 +358,7 @@ static int ReadPNG(FILE* in_file, WebPPicture* const pic, int keep_alpha) { if (setjmp(png_jmpbuf(png))) { Error: png_destroy_read_struct(&png, NULL, NULL); - if (rgb) free(rgb); + free(rgb); goto End; }