From 228e0a3d7924479f763ae164ff4fc70891f0ef7d Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Mon, 24 Feb 2014 14:55:32 +0000 Subject: [PATCH] [trunk] Fix a simple mem leak --- src/bin/jp2/convert.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/jp2/convert.c b/src/bin/jp2/convert.c index 6997def9..0b1291de 100644 --- a/src/bin/jp2/convert.c +++ b/src/bin/jp2/convert.c @@ -2856,6 +2856,7 @@ static opj_image_t* rawtoimage_common(const char *filename, opj_cparameters_t *p } /* create the image */ image = opj_image_create(numcomps, &cmptparm[0], color_space); + free(cmptparm); if(!image) { fclose(f); return NULL;