diff options
author | Donald Sharp <sharpd@nvidia.com> | 2023-04-10 20:12:59 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2023-04-12 16:41:42 +0200 |
commit | 1b192d88e44625b1725a8f0408d9948e115e00b6 (patch) | |
tree | bd7c01dcf5102d3af34b163a6ba72fcc9dc0be86 /zebra | |
parent | Merge pull request #13242 from LabNConsulting/chopps/no_rip_in_lib (diff) | |
download | frr-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>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/zebra_rib.c | 3 |
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--; } } |