Unlock during early return in TruncateCache
Found via Coverity. Regression from
dfa63345ed.
This commit is contained in:
@ -347,6 +347,7 @@ bool StatCache::TruncateCache(void)
|
||||
pthread_mutex_lock(&StatCache::stat_cache_lock);
|
||||
|
||||
if(stat_cache.empty()){
|
||||
pthread_mutex_unlock(&StatCache::stat_cache_lock);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user