[trunk] Fix a simple mem leak

This commit is contained in:
Mathieu Malaterre 2014-02-24 14:55:32 +00:00
parent f38e29d00a
commit 228e0a3d79
1 changed files with 1 additions and 0 deletions

View File

@ -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;