Skip to content

Commit 1a6d2f6

Browse files
author
Cruz Monrreal
authored
Merge pull request #8451 from korjaa/fix_possible_filebase_deadlock
Added missing _mutex->unlock() to FileBase::lookup().
2 parents c8ada37 + 4efec08 commit 1a6d2f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platform/FileBase.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ FileBase *FileBase::lookup(const char *name, unsigned int len)
8888
p = p->_next;
8989
}
9090
if (len == (sizeof "default") - 1 && std::memcmp("default", name, len) == 0) {
91+
_mutex->unlock();
9192
return _default;
9293
}
9394
_mutex->unlock();

0 commit comments

Comments
 (0)