mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-02-13 15:58:39 +00:00
Unlock during early return in TruncateCache
Found via Coverity. Regression from dfa63345edb496986fecd70fca28ff8aba476f2a.
This commit is contained in:
parent
a3e820e733
commit
bcfadbe1a8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user