[Fontconfig] fontconfig: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jan 15 11:30:32 UTC 2021


 src/fccfg.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit b7e49315827f434eba1f2683dca1313110a4d21b
Author: Jacko Dirks <jacko.dirks at gmail.com>
Date:   Wed Jan 13 14:25:59 2021 +0100

    fccfg.c: lock_config: Fix potential memory leak
    
    We would malloc for every try, never cleaning up.

diff --git a/src/fccfg.c b/src/fccfg.c
index 00a94e5..91af959 100644
--- a/src/fccfg.c
+++ b/src/fccfg.c
@@ -54,6 +54,7 @@ retry:
 	if (!fc_atomic_ptr_cmpexch (&_lock, NULL, lock))
 	{
 	    FcMutexFinish (lock);
+	    free (lock);
 	    goto retry;
 	}
 	FcMutexLock (lock);


More information about the Fontconfig mailing list