fontconfig: Branch 'master'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

New commits:
commit b7e49315827f434eba1f2683dca1313110a4d21b
Author: Jacko Dirks <jacko.dirks@xxxxxxxxx>
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);
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/fontconfig



[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux