1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

sys/netif: include release of iovec in gnrc_netif_raw

This commit is contained in:
PeterKietzmann 2017-12-13 17:29:10 +01:00
parent dbc577466e
commit 70810ae697

View File

@ -100,8 +100,11 @@ static int _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt)
/* we don't need the netif snip: remove it */
pkt = gnrc_pktbuf_remove_snip(pkt, pkt);
}
/* prepare packet for sending */
vector = gnrc_pktbuf_get_iovec(pkt, &n);
if (vector != NULL) {
/* reassign for later release; vector is prepended to pkt */
pkt = vector;
struct iovec *v = (struct iovec *)vector->data;
netdev_t *dev = netif->dev;