diff --git a/components/fs/vfs/vfs_fs.c b/components/fs/vfs/vfs_fs.c index f75ccdc2..7fcd849c 100644 --- a/components/fs/vfs/vfs_fs.c +++ b/components/fs/vfs/vfs_fs.c @@ -275,6 +275,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); }