mirror of https://gitlab.com/nakst/essence
Merge branch 'master' into 'master'
fix potential os crash on shutdown due to handle leak in FSNodeTraverseLayer See merge request nakst/essence!1
This commit is contained in:
commit
3ecb3f4d2f
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