|author||Ben Wagner <firstname.lastname@example.org>||Tue Aug 31 12:47:48 2021 -0400|
|committer||Akira TAGOH <email@example.com>||Mon Sep 06 03:20:31 2021 +0000|
Free local FcCache lock on contention If two threads attempt to create the FcCache lock in lock_cache at the same time, both threads may create and initialize a local FcMutex. One thread will atomically make cache_lock point to its FcMutex. The other thread currently calls FcMutexFinish on the local lock, but does not free it. Change this behavior to free the unused lock. Found with test/test-pthread on an LeakSanitizer enabled build.