Unlock during early return in TruncateCache

Found via Coverity.  Regression from
dfa63345ed.
This commit is contained in:
Andrew Gaul 2015-08-19 09:53:31 -07:00
parent a3e820e733
commit bcfadbe1a8

View File

@ -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;
}