Add missing fclose() statement in error condition.

This commit is contained in:
Gregory Fiumara 2017-10-20 15:31:45 -04:00
parent 53d265576a
commit 10d22ec26d
1 changed files with 1 additions and 0 deletions

View File

@ -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,