4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-03-02 09:35:28 +08:00

[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

View File

@ -940,6 +940,7 @@ int lwp_channel_open(int fdt_type, const char *name, int flags)
else else
{ {
rt_free(d->vnode); rt_free(d->vnode);
d->vnode = RT_NULL;
_chfd_free(fd, fdt_type); _chfd_free(fd, fdt_type);
fd = -1; fd = -1;
} }