!627 修复L0 fs Opendir打开失败返回值不为空问题

Merge pull request !627 from 龙幸开/master
This commit is contained in:
openharmony_ci 2022-03-11 06:53:18 +00:00 committed by Gitee
commit cde2b3bd31
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 0 deletions

View File

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