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 <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2023-04-10 14:12:59 -04:00
parent 4150fc5399
commit 1b192d88e4

View File

@ -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--;
}
}