Fix heap use-after-free

This commit is contained in:
Tom Anderson 2018-06-11 23:16:42 -07:00 committed by Akira TAGOH
parent f5dd8512bd
commit 6cc99d6a82
1 changed files with 1 additions and 1 deletions

View File

@ -163,8 +163,8 @@ FcDirCacheDeleteUUID (const FcChar8 *dir,
target = FcStrBuildFilename (dir, ".uuid", NULL); target = FcStrBuildFilename (dir, ".uuid", NULL);
ret = unlink ((char *) target) == 0; ret = unlink ((char *) target) == 0;
FcStrFree (target);
FcHashTableRemove (config->uuid_table, target); FcHashTableRemove (config->uuid_table, target);
FcStrFree(target);
return ret; return ret;
} }