未验证 提交 661338d2 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1473 from Bluebear233/patch-1

[DFS] Update net_sockets.c
......@@ -320,6 +320,16 @@ int socket(int domain, int type, int protocol)
rt_list_init(&(lwsock->wait_head));
lwsock->conn->callback = event_callback;
}
else
{
/* release fd */
fd_put(d);
fd_put(d);
rt_set_errno(-ENOMEM);
return -1;
}
/* release the ref-count of fd */
fd_put(d);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册