[lwp] clear vnode in fd after free
This commit is contained in:
parent
27a1c55505
commit
cb60ef2c86
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue