leaked_storage: Variable "fontBaseFile" going out of scope leaks the storage it points to.
leaked_storage: Variable "image" going out of scope leaks the storage it points to.
strcpy(fontDescriptorFile, fontBaseFile);
strcpy(&fontDescriptorFile[length], ".xml");
- free(fontBaseFile);
if (!PathFileExistsA(fontImageFile))
goto cleanup;
if (status < 0)
goto cleanup;
+ free(fontBaseFile);
free(fontImageFile);
free(fontDescriptorFile);
return font;
cleanup:
+ free(fontBaseFile);
free(fontImageFile);
free(fontDescriptorFile);
if (ninePatch)
rdtk_nine_patch_set_image(ninePatch, image);
+ else
+ winpr_image_free(image, TRUE);
}
}
if (ninePatch)
rdtk_nine_patch_set_image(ninePatch, image);
+ else
+ winpr_image_free(image, TRUE);
}
}