[Fontconfig] fontconfig: Branch 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Oct 31 07:28:56 UTC 2019
src/fccache.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit a45fc8a33256d9d3ea0ea7947f33c8e5e3cc7238
Author: Akira TAGOH <akira at tagoh.org>
Date: Thu Oct 31 16:15:25 2019 +0900
Fix a memory leak caused by the previous commit
diff --git a/src/fccache.c b/src/fccache.c
index 4acde22..c565560 100644
--- a/src/fccache.c
+++ b/src/fccache.c
@@ -397,6 +397,8 @@ FcDirCacheProcess (FcConfig *config, const FcChar8 *dir,
else
FcStrFree (cache_hashed);
}
+ else
+ FcStrFree (cache_hashed);
}
#ifndef _WIN32
else if (!retried)
@@ -416,6 +418,8 @@ FcDirCacheProcess (FcConfig *config, const FcChar8 *dir,
break;
goto retry;
}
+ else
+ FcStrFree (cache_hashed);
}
#endif
else
More information about the Fontconfig
mailing list