From 2bc508bdd35215ad3030e8e5ac493f5b47435c83 Mon Sep 17 00:00:00 2001 From: wangchen <253227059@qq.com> Date: Sat, 17 Dec 2022 08:23:19 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=9E=E5=90=881018=20open=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=86=85=E5=AD=98=E6=B3=84=E6=BC=8F=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 方案描述: 1, 修改路径正确时打开失败可能的异常 fix #I66KHK Signed-off-by: wangchen --- components/fs/vfs/vfs_fs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/fs/vfs/vfs_fs.c b/components/fs/vfs/vfs_fs.c index 0bec9575..66a657e7 100644 --- a/components/fs/vfs/vfs_fs.c +++ b/components/fs/vfs/vfs_fs.c @@ -267,6 +267,7 @@ static int VfsOpen(const char *path, int flags) fd = FileToFd(file); file->fStatus = FILE_STATUS_READY; /* file now ready to use */ } else { + LOSCFG_FS_FREE_HOOK((void *)file->fullPath); VfsFilePut(file); }