From a859329f283ee30b2c537e609489105a08a6bfe6 Mon Sep 17 00:00:00 2001 From: Hongjin Li Date: Thu, 1 Dec 2022 09:33:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8LOSCFG=5FFS=5FFREE=5FH?= =?UTF-8?q?OOK=E9=87=8A=E6=94=BE=E5=86=85=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 文件系统中使用LOSCFG_FS_FREE_HOOK代替free()来释放内存。 close #I6412J Signed-off-by: Hongjin Li --- components/fs/vfs/vfs_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/fs/vfs/vfs_fs.c b/components/fs/vfs/vfs_fs.c index 840b53c2..daf1ee8e 100644 --- a/components/fs/vfs/vfs_fs.c +++ b/components/fs/vfs/vfs_fs.c @@ -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; }