1
0
Эх сурвалжийг харах

[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>
Fan YANG 1 жил өмнө
parent
commit
0b966bfca0

+ 0 - 1
components/net/sal/socket/net_sockets.c

@@ -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);