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

gnrc_sixlowpan_frag: release for fragment too big error case

The fragment is released for all other error cases, just not this one.
This commit is contained in:
Martine Lenders 2019-01-23 18:05:37 +01:00
parent 1f7292c358
commit 4c1d1424c0

View File

@ -121,6 +121,7 @@ static int _rbuf_add(gnrc_netif_hdr_t *netif_hdr, gnrc_pktsnip_t *pkt,
if ((offset + frag_size) > entry->super.pkt->size) { if ((offset + frag_size) > entry->super.pkt->size) {
DEBUG("6lo rfrag: fragment too big for resulting datagram, discarding datagram\n"); DEBUG("6lo rfrag: fragment too big for resulting datagram, discarding datagram\n");
gnrc_pktbuf_release(entry->super.pkt); gnrc_pktbuf_release(entry->super.pkt);
gnrc_pktbuf_release(pkt);
rbuf_rm(entry); rbuf_rm(entry);
return RBUF_ADD_ERROR; return RBUF_ADD_ERROR;
} }