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 #endif
FcDirCacheBasenameMD5 (dir, cache_base); FcDirCacheBasenameMD5 (dir, cache_base);
cache_hashed = FcStrBuildFilename (cache_dir, cache_base, NULL); cache_hashed = FcStrBuildFilename (cache_dir, cache_base, NULL);
FcStrFree (cache_dir);
if (!cache_hashed) if (!cache_hashed)
return FcFalse; return FcFalse;
FcStrFree (cache_dir);
if (FcDebug () & FC_DBG_CACHE) if (FcDebug () & FC_DBG_CACHE)
printf ("FcDirCacheWriteDir dir \"%s\" file \"%s\"\n", printf ("FcDirCacheWriteDir dir \"%s\" file \"%s\"\n",