diff --git a/net/ieee802154/ieee802154_input.c b/net/ieee802154/ieee802154_input.c index 945ec0f4fe..ae6ba95b40 100644 --- a/net/ieee802154/ieee802154_input.c +++ b/net/ieee802154/ieee802154_input.c @@ -176,8 +176,8 @@ static int ieee802154_queue_frame(FAR struct ieee802154_conn_s *conn, /* Free both the IOB and the container */ - iob_free(container->ic_iob); - ieee802154_container_free(container, IOBUSER_NET_SOCK_IEEE802154); + iob_free(container->ic_iob, IOBUSER_NET_SOCK_IEEE802154); + ieee802154_container_free(container); } else { diff --git a/net/local/local_netpoll.c b/net/local/local_netpoll.c index ebcd978d52..bf038c3af8 100644 --- a/net/local/local_netpoll.c +++ b/net/local/local_netpoll.c @@ -44,6 +44,7 @@ #include #include +#include #include #include diff --git a/net/tcp/tcp_netpoll.c b/net/tcp/tcp_netpoll.c index 3890d06609..e883c97ab4 100644 --- a/net/tcp/tcp_netpoll.c +++ b/net/tcp/tcp_netpoll.c @@ -232,7 +232,7 @@ int tcp_pollsetup(FAR struct socket *psock, FAR struct pollfd *fds) FAR struct tcp_conn_s *conn = psock->s_conn; FAR struct tcp_poll_s *info; FAR struct devif_callback_s *cb; - int ret; + int ret = OK; /* Sanity check */ diff --git a/net/udp/udp_netpoll.c b/net/udp/udp_netpoll.c index 0bf042b35c..c351ea55a6 100644 --- a/net/udp/udp_netpoll.c +++ b/net/udp/udp_netpoll.c @@ -204,7 +204,7 @@ int udp_pollsetup(FAR struct socket *psock, FAR struct pollfd *fds) FAR struct udp_conn_s *conn = psock->s_conn; FAR struct udp_poll_s *info; FAR struct devif_callback_s *cb; - int ret; + int ret = OK; /* Sanity check */