summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-04-10 20:12:59 +0200
committerDonald Sharp <sharpd@nvidia.com>2023-04-12 16:41:42 +0200
commit1b192d88e44625b1725a8f0408d9948e115e00b6 (patch)
treebd7c01dcf5102d3af34b163a6ba72fcc9dc0be86
parentMerge pull request #13242 from LabNConsulting/chopps/no_rip_in_lib (diff)
downloadfrr-1b192d88e44625b1725a8f0408d9948e115e00b6.tar.xz
frr-1b192d88e44625b1725a8f0408d9948e115e00b6.zip
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 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--;
}
}