[components][net][sal][socket] Fix duplicate free on allocated buffer

- Avoid duplicate free as the d->vnode will be freed in the fd_release API call

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
This commit is contained in:
Fan YANG 2023-07-14 15:26:53 +08:00 committed by guo
parent a07fda3470
commit 0b966bfca0
1 changed files with 0 additions and 1 deletions

View File

@ -264,7 +264,6 @@ int socket(int domain, int type, int protocol)
}
else
{
rt_free(d->vnode);
/* release fd */
fd_release(fd);
rt_set_errno(-ENOMEM);