Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions beken378/func/lwip_intf/lwip-2.0.2/src/api/sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -1851,8 +1851,15 @@ lwip_shutdown(int s, int how)
if (!sock) {
return -1;
}
SOCK_DEINIT_SYNC(sock);

/*
SBERDEVICES: start of changes
Removed: SOCK_DEINIT_SYNC macro at socket shutdown
Reason: fix issue with memory leaks if socket close() is called after shutdown()
*/
// SOCK_DEINIT_SYNC(sock);
/*
SBERDEVICES: end of changes
*/
if (sock->conn != NULL) {
if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) {
sock_set_errno(sock, EOPNOTSUPP);
Expand Down