From: Gregory Fiumara Date: Fri, 20 Oct 2017 19:31:45 +0000 (-0400) Subject: Add missing fclose() statement in error condition. X-Git-Tag: v2.3.1~52^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10d22ec26d864e93ad92b4570f044258c6c5bdf9;p=openjpeg Add missing fclose() statement in error condition. --- diff --git a/src/bin/jpwl/convert.c b/src/bin/jpwl/convert.c index d0ec4bd0..f3bb670b 100644 --- a/src/bin/jpwl/convert.c +++ b/src/bin/jpwl/convert.c @@ -737,6 +737,7 @@ opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters) if (fread(RGB, sizeof(unsigned char), (3 * W + PAD) * H, IN) != (3 * W + PAD) * H) { + fclose(IN); free(RGB); opj_image_destroy(image); fprintf(stderr,