mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
Remove double free on select_cb (bug #51990)
This was left over after the refactoring in 92b6f83eb2
This commit is contained in:
parent
7ba479e482
commit
5c0054d8ee
@ -2043,7 +2043,6 @@ lwip_select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset,
|
|||||||
if (nready < 0) {
|
if (nready < 0) {
|
||||||
/* This happens when a socket got closed while waiting */
|
/* This happens when a socket got closed while waiting */
|
||||||
lwip_select_dec_sockets_used(maxfdp1, &used_sockets);
|
lwip_select_dec_sockets_used(maxfdp1, &used_sockets);
|
||||||
API_SELECT_CB_VAR_FREE(select_cb);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user