fix fs opendir bug

Signed-off-by: longxingkai <longxingkai@talkweb.com.cn>
This commit is contained in:
longxingkai 2022-03-11 10:23:38 +08:00
parent 536e9b4584
commit e3e9b2f5a5
1 changed files with 1 additions and 0 deletions

View File

@ -683,6 +683,7 @@ static DIR *VfsOpendir(const char *path)
mp->mRefs++;
} else {
free(dir);
dir = NULL;
}
VfsUnlock();