Commit 4b1276e2 authored by Akira TAGOH's avatar Akira TAGOH

Fix memory leak

parent e9d31775
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment