!947 fix: 使用LOSCFG_FS_FREE_HOOK释放内存
Merge pull request !947 from Hongjin Li/max_open_dirs
This commit is contained in:
commit
9e4978f57f
|
@ -670,7 +670,7 @@ static DIR *VfsOpendir(const char *path)
|
|||
if (g_dirNum >= LOSCFG_MAX_OPEN_DIRS) {
|
||||
VFS_ERRNO_SET(ENFILE);
|
||||
VfsUnlock();
|
||||
free(dir);
|
||||
LOSCFG_FS_FREE_HOOK(dir);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue