Fix memory leak

This commit is contained in:
Akira TAGOH 2018-07-19 11:40:31 +09:00
parent e9d3177557
commit 4b1276e240
1 changed files with 1 additions and 1 deletions

View File

@ -1348,9 +1348,9 @@ FcDirCacheWrite (FcCache *cache, FcConfig *config)
#endif
FcDirCacheBasenameMD5 (dir, cache_base);
cache_hashed = FcStrBuildFilename (cache_dir, cache_base, NULL);
FcStrFree (cache_dir);
if (!cache_hashed)
return FcFalse;
FcStrFree (cache_dir);
if (FcDebug () & FC_DBG_CACHE)
printf ("FcDirCacheWriteDir dir \"%s\" file \"%s\"\n",