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:
parent
1d7239d00a
commit
f33a183936
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue