Skip to content

Commit

Permalink
Merge pull request #1037 from gfiumara/master
Browse files Browse the repository at this point in the history
Add missing fclose() statement in error condition.
  • Loading branch information
rouault authored Oct 20, 2017
2 parents 53d2655 + 10d22ec commit d9f8f7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bin/jpwl/convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d9f8f7b

Please sign in to comment.