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); }