[lwp] clear vnode in fd after free

This commit is contained in:
wangxiaoyao authored and guo committed 2023-03-11 19:01:33 +08:00
1 parent 27a1c55505
commit cb60ef2c86
1 file changed
+1
+1
View File
@@ -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;
}