Skip to content

Commit

Permalink
src/bin/jpwl/convert.c: add missing fclose() in error code path (sugg…
Browse files Browse the repository at this point in the history
…ested by maddin200, #976)
  • Loading branch information
rouault committed Jul 31, 2017
1 parent 13cde9f commit 48125b0
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 @@ -1524,6 +1524,7 @@ int imagetopgx(opj_image_t * image, const char *outfile)
res = fwrite(&byte, 1, 1, fdest);
if (res < 1) {
fprintf(stderr, "failed to write 1 byte for %s\n", name);
fclose(fdest);
return 1;
}
}
Expand Down

0 comments on commit 48125b0

Please sign in to comment.