From 4c1d1424c00def93b7889afb0708c07e4e8dcdac Mon Sep 17 00:00:00 2001 From: Martine Lenders <m.lenders@fu-berlin.de> Date: Wed, 23 Jan 2019 18:05:37 +0100 Subject: [PATCH] gnrc_sixlowpan_frag: release for fragment too big error case The fragment is released for all other error cases, just not this one. --- sys/net/gnrc/network_layer/sixlowpan/frag/rbuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/gnrc/network_layer/sixlowpan/frag/rbuf.c b/sys/net/gnrc/network_layer/sixlowpan/frag/rbuf.c index 0f2f27122f..a7b9dd290a 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/frag/rbuf.c +++ b/sys/net/gnrc/network_layer/sixlowpan/frag/rbuf.c @@ -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) { DEBUG("6lo rfrag: fragment too big for resulting datagram, discarding datagram\n"); gnrc_pktbuf_release(entry->super.pkt); + gnrc_pktbuf_release(pkt); rbuf_rm(entry); return RBUF_ADD_ERROR; } -- GitLab