diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-07-31 17:35:10 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-07-31 17:35:10 +0200 |
| commit | 48125b0d124bc668b971b1f5df5a3c39798cfcf9 (patch) | |
| tree | f4b4532967801a2cbc03b269023ece162a048774 /src | |
| parent | 13cde9fa37249628af6b6f10601b733f87a025f4 (diff) | |
src/bin/jpwl/convert.c: add missing fclose() in error code path (suggested by maddin200, #976)
Diffstat (limited to 'src')
| -rw-r--r-- | src/bin/jpwl/convert.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/jpwl/convert.c b/src/bin/jpwl/convert.c index 8650ae9c..7343528b 100644 --- a/src/bin/jpwl/convert.c +++ b/src/bin/jpwl/convert.c @@ -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; } } |
