diff --git a/components/lwp/lwp_ipc.c b/components/lwp/lwp_ipc.c index dc53310e82..d089285bbd 100644 --- a/components/lwp/lwp_ipc.c +++ b/components/lwp/lwp_ipc.c @@ -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; }