mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
pkg/lwip: fix memory issue when sending with empty sock
This commit is contained in:
parent
e96bc2a13d
commit
49a8f64c62
@ -564,6 +564,9 @@ ssize_t lwip_sock_send(struct netconn *conn, const void *data, size_t len,
|
||||
break;
|
||||
}
|
||||
netbuf_delete(buf);
|
||||
if (conn == NULL) {
|
||||
netconn_delete(tmp);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user