1
0
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:
Wouter Symons 2019-12-11 16:14:52 +01:00 committed by Martine S. Lenders
parent e96bc2a13d
commit 49a8f64c62

View File

@ -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;
}