mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 23:11:19 +01:00
gnrc_netif: add missing pktbuf release
This commit is contained in:
parent
53348e3a8c
commit
dfb214ab98
@ -1521,6 +1521,9 @@ static void _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt, bool push_back)
|
||||
}
|
||||
else {
|
||||
LOG_ERROR("gnrc_netif: can't queue packet for sending\n");
|
||||
/* If we got here, it means the device was busy and the pkt queue
|
||||
* was full. The packet should be dropped here anyway */
|
||||
gnrc_pktbuf_release_error(pkt, ENOMEM);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user