4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-21 00:27:19 +08:00

[SAL/SOCKET]修复在 RT_DEBUG 开启后,调用 closesocket 接口触发断言的 BUG

This commit is contained in:
yanghaiyong 2023-07-07 09:42:55 +08:00 committed by guo
parent 6a9973cf19
commit 259431ace3

View File

@ -311,7 +311,6 @@ int closesocket(int s)
error = -1;
}
rt_free(d->vnode);
/* socket has been closed, delete it from file system fd */
fd_release(s);