[trunk] Fix a simple mem leak
This commit is contained in:
parent
f38e29d00a
commit
228e0a3d79
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue