src/bin/jpwl/convert.c: add missing fclose() in error code path (suggested by maddin200, #976)

This commit is contained in:
Even Rouault 2017-07-31 17:35:10 +02:00
parent 13cde9fa37
commit 48125b0d12
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}