Merge pull request #1037 from gfiumara/master

Add missing fclose() statement in error condition.
This commit is contained in:
Even Rouault 2017-10-20 21:59:14 +02:00 committed by GitHub
commit d9f8f7ba9a
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,