未验证 提交 8a9646b6 编写于 作者: H HubretXie 提交者: GitHub

Update sal_socket.c

修复关闭socket时的Bug
上级 b1bbf434
......@@ -697,9 +697,8 @@ int sal_closesocket(int socket)
if (sock->ops->closesocket((int) sock->user_data) == 0)
{
rt_free(sock);
sock = RT_NULL;
rt_free(sock);
socket_table.sockets[socket] = RT_NULL;
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册