mirror of https://gitlab.com/nakst/essence
fix potential os crash on filesystem shutdown due to handle leak in FSNodeTraverseLayer
This commit is contained in:
parent
099d6af4a8
commit
3a9bf51a4a
kernel
|
@ -1233,6 +1233,7 @@ EsError FSNodeTraverseLayer(uintptr_t *sectionEnd,
|
|||
size_t nameBytes = *sectionEnd - sectionStart;
|
||||
|
||||
if (!nameBytes) {
|
||||
FSNodeCloseHandle(directory, 0);
|
||||
return ES_ERROR_PATH_NOT_TRAVERSABLE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue