Commit b7e49315 authored by Jacko Dirks's avatar Jacko Dirks

fccfg.c: lock_config: Fix potential memory leak

We would malloc for every try, never cleaning up.
parent 643c3f1e
Pipeline #256507 passed with stage
in 13 minutes and 23 seconds
......@@ -54,6 +54,7 @@ retry:
if (!fc_atomic_ptr_cmpexch (&_lock, NULL, lock))
{
FcMutexFinish (lock);
free (lock);
goto retry;
}
FcMutexLock (lock);
......
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