From 7a7a8891c9a35600f3907067a0d2d9f96ad6ef1b Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Mon, 11 Nov 2024 20:30:30 +0100 Subject: [PATCH] gnrc_netif: fix double free with netdev_new_api & gnrc_netif_pktq (cherry picked from commit 0bed0c6bfe1091ca820a679de7293cf527752e43) --- sys/net/gnrc/netif/gnrc_netif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/gnrc/netif/gnrc_netif.c b/sys/net/gnrc/netif/gnrc_netif.c index 8ececfad0356..66e317a0a059 100644 --- a/sys/net/gnrc/netif/gnrc_netif.c +++ b/sys/net/gnrc/netif/gnrc_netif.c @@ -1813,6 +1813,7 @@ static void _tx_done(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt, else { /* remove previously held packet */ gnrc_pktbuf_release(pkt); + return; } #endif /* IS_USED(MODULE_GNRC_NETIF_PKTQ) */