src/bin/jpwl/convert.c: add missing fclose() in error code path (suggested by maddin200, #976)
This commit is contained in:
parent
13cde9fa37
commit
48125b0d12
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue