Merge pull request #246 from andrewgaul/coverity

Unlock during early return in TruncateCache
This commit is contained in:
Takeshi Nakatani
2015-08-22 00:43:34 +09:00

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