mirror of https://github.com/ARMmbed/mbed-os.git
Added missing _mutex->unlock() to FileBase::lookup().
parent
3e24f2570a
commit
92a4beff19
|
@ -88,6 +88,7 @@ FileBase *FileBase::lookup(const char *name, unsigned int len)
|
||||||
p = p->_next;
|
p = p->_next;
|
||||||
}
|
}
|
||||||
if (len == (sizeof "default") - 1 && std::memcmp("default", name, len) == 0) {
|
if (len == (sizeof "default") - 1 && std::memcmp("default", name, len) == 0) {
|
||||||
|
_mutex->unlock();
|
||||||
return _default;
|
return _default;
|
||||||
}
|
}
|
||||||
_mutex->unlock();
|
_mutex->unlock();
|
||||||
|
|
Loading…
Reference in New Issue