Update sal_socket.c

This commit is contained in:
HubretXie
2018-09-12 10:26:46 +08:00
committed by GitHub
parent 8edb978c9a
commit e14330daf9
+1 -2
View File
@@ -489,8 +489,7 @@ int sal_shutdown(int socket, int how)
if (sock->ops->shutdown((int) sock->user_data, how) == 0)
{
rt_free(sock);
sock = RT_NULL;
socket_table.sockets[socket] = RT_NULL;
return 0;
}