提交 cb60ef2c 编写于 作者: W wangxiaoyao 提交者: guo

[lwp] clear vnode in fd after free

上级 27a1c555
......@@ -940,6 +940,7 @@ int lwp_channel_open(int fdt_type, const char *name, int flags)
else
{
rt_free(d->vnode);
d->vnode = RT_NULL;
_chfd_free(fd, fdt_type);
fd = -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册