tests: net: ipv6: Fix packet leak

Receive callback has to unref the packet received, otherwise we leak
packet.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2024-05-15 11:55:09 +02:00 committed by Johan Hedberg
commit f33a183936

View file

@ -1403,6 +1403,8 @@ static void recv_cb(struct net_context *context,
recv_cb_called = true;
net_pkt_unref(pkt);
k_sem_give(&wait_data);
}