Skip to content
Snippets Groups Projects
Commit e8da744e authored by Martine Lenders's avatar Martine Lenders
Browse files

gnrc_sixlowpan_frag: release packet when frag hdr can't be marked

Otherwise, there will be leaks ;-).
parent a409603f
No related branches found
No related tags found
No related merge requests found
......@@ -137,6 +137,7 @@ void rbuf_add(gnrc_netif_hdr_t *netif_hdr, gnrc_pktsnip_t *pkt,
sizeof(sixlowpan_frag_t), GNRC_NETTYPE_SIXLOWPAN);
if (frag_hdr == NULL) {
gnrc_pktbuf_release(entry->super.pkt);
gnrc_pktbuf_release(pkt);
rbuf_rm(entry);
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment