From 6bbb908d590923607cbf49bc7ebc664c0e5f4f93 Mon Sep 17 00:00:00 2001 From: Vincent Dupont Date: Tue, 16 Apr 2019 17:00:04 +0200 Subject: [PATCH] can/pkt: free pkt on bus off error --- sys/can/dll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/can/dll.c b/sys/can/dll.c index 1d0f5098a8..6ff0a06564 100644 --- a/sys/can/dll.c +++ b/sys/can/dll.c @@ -423,6 +423,7 @@ int can_dll_dispatch_bus_off(kernel_pid_t pid) while (entry) { can_pkt_t *pkt = container_of(entry, can_pkt_t, entry); can_router_dispatch_tx_error(pkt); + can_pkt_free(pkt); LL_DELETE(tx_list[ifnum], entry); entry = tx_list[ifnum]; }