summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-04-10 14:12:59 -0400
committerDonald Sharp <sharpd@nvidia.com>2023-04-12 10:41:42 -0400
commit1b192d88e44625b1725a8f0408d9948e115e00b6 (patch)
treebd7c01dcf5102d3af34b163a6ba72fcc9dc0be86
parent4150fc5399f41884c5fd0f732b40d397b525c580 (diff)
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>
-rw-r--r--zebra/zebra_rib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 32cfa4d04c..adcaf64044 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--;
}
}