projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13cde9f
)
src/bin/jpwl/convert.c: add missing fclose() in error code path (suggested by maddin2...
author
Even Rouault
<even.rouault@spatialys.com>
Mon, 31 Jul 2017 15:35:10 +0000
(17:35 +0200)
committer
Even Rouault
<even.rouault@spatialys.com>
Mon, 31 Jul 2017 15:35:10 +0000
(17:35 +0200)
src/bin/jpwl/convert.c
patch
|
blob
|
history
diff --git
a/src/bin/jpwl/convert.c
b/src/bin/jpwl/convert.c
index 8650ae9c406396f2d492a07f695394fccb134617..7343528b689ea4d6d010417ab3d81923552c02d5 100644
(file)
--- 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;
}
}