Fix heap use-after-free
This commit is contained in:
parent
f5dd8512bd
commit
6cc99d6a82
|
@ -163,8 +163,8 @@ FcDirCacheDeleteUUID (const FcChar8 *dir,
|
|||
target = FcStrBuildFilename (dir, ".uuid", NULL);
|
||||
|
||||
ret = unlink ((char *) target) == 0;
|
||||
FcStrFree (target);
|
||||
FcHashTableRemove (config->uuid_table, target);
|
||||
FcStrFree(target);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue