[lwp] clear vnode in fd after free

This commit is contained in:
wangxiaoyao 2023-03-09 11:52:42 +08:00 committed by guo
parent 27a1c55505
commit cb60ef2c86
1 changed files with 1 additions and 0 deletions

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