提交 2bc508bd 编写于 作者: W wangchen

fix: 回合1018 open接口内存泄漏修复

方案描述:
1, 修改路径正确时打开失败可能的异常

fix #I66KHK
Signed-off-by: Nwangchen <wangchen240@huawei.com>
上级 eb08c174
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册