fix a memory leak

This commit is contained in:
tth 2021-03-10 05:51:48 +01:00
parent b9d963dfa2
commit cd1f278d45

View File

@ -167,6 +167,10 @@ if (NULL == fimg->R) {
free(fimg->R);
if (FIMG_TYPE_RGB==fimg->type) {
free(fimg->G);
free(fimg->B);
}
memset(fimg, 0, sizeof(FloatImg));
return 0;