This is an automated email from the ASF dual-hosted git repository.
marko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 8ceb690 pbuf_free on p as udp_sendto doesn't consume it
8ceb690 is described below
commit 8ceb690cbd79432d79e8d68602b4c0f86308036b
Author: Niklas Casaril <[email protected]>
AuthorDate: Wed Oct 16 17:47:33 2019 +1000
pbuf_free on p as udp_sendto doesn't consume it
udp_sendto doesn't free the pbuf even though it succeeds in sending it
as per comment at /net/ip/lwip_base/src/core/udp.c:854.
---
net/ip/src/lwip_socket.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/ip/src/lwip_socket.c b/net/ip/src/lwip_socket.c
index 21d5ffc..e8c7e00 100644
--- a/net/ip/src/lwip_socket.c
+++ b/net/ip/src/lwip_socket.c
@@ -538,6 +538,7 @@ lwip_sendto(struct mn_socket *ms, struct os_mbuf *m,
return rc;
}
os_mbuf_free_chain(m);
+ pbuf_free(p);
return 0;
#endif
#if LWIP_TCP