summaryrefslogtreecommitdiff
path: root/src/bin/jp2/convertbmp.c
diff options
context:
space:
mode:
authormayeut <mayeut@users.noreply.github.com>2015-09-24 23:32:03 +0200
committermayeut <mayeut@users.noreply.github.com>2015-09-24 23:32:03 +0200
commitf9df8ba19a92d5c97532c8d52c034beabe957cf7 (patch)
treef65e34dcee55eef15df4fecfdaafe156dd6d4c49 /src/bin/jp2/convertbmp.c
parentf82d7f3a63a99997449b15390d0c3f2fc6159d9c (diff)
Fix some resource leaks
Diffstat (limited to 'src/bin/jp2/convertbmp.c')
-rw-r--r--src/bin/jp2/convertbmp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/jp2/convertbmp.c b/src/bin/jp2/convertbmp.c
index 0678d9d3..78ca4af5 100644
--- a/src/bin/jp2/convertbmp.c
+++ b/src/bin/jp2/convertbmp.c
@@ -729,6 +729,7 @@ opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters)
image = opj_image_create(numcmpts, &cmptparm[0], (numcmpts == 1U) ? OPJ_CLRSPC_GRAY : OPJ_CLRSPC_SRGB);
if(!image) {
fclose(IN);
+ free(pData);
return NULL;
}
if (numcmpts == 4U) {