From 1b192d88e44625b1725a8f0408d9948e115e00b6 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 10 Apr 2023 14:12:59 -0400 Subject: zebra: Actually free up memory associated with the mq list Free up the link list data structures as well as properly account for data sizes. Signed-off-by: Donald Sharp --- zebra/zebra_rib.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'zebra') diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 32cfa4d04..adcaf6404 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -3766,6 +3766,9 @@ static void rib_meta_queue_gr_run_free(struct meta_queue *mq, struct list *l, continue; XFREE(MTYPE_WQ_WRAPPER, gr_run); + node->data = NULL; + list_delete_node(l, node); + mq->size--; } } -- cgit v1.2.3