fccfg.c: lock_config: Fix potential memory leak
We would malloc for every try, never cleaning up.
This commit is contained in:
parent
643c3f1e27
commit
b7e4931582
|
@ -54,6 +54,7 @@ retry:
|
|||
if (!fc_atomic_ptr_cmpexch (&_lock, NULL, lock))
|
||||
{
|
||||
FcMutexFinish (lock);
|
||||
free (lock);
|
||||
goto retry;
|
||||
}
|
||||
FcMutexLock (lock);
|
||||
|
|
Loading…
Reference in New Issue