summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-11-15 19:47:41 +0100
committerDonald Sharp <sharpd@nvidia.com>2023-11-21 18:39:07 +0100
commit65b65f47c82a8f4345a6aeff61f93f0d18117a1b (patch)
treec74e1c086e0c163f17aafafb75ce1e2a21d7e4ae /zebra
parentzebra: On shutdown cleanup zns memory. (diff)
downloadfrr-65b65f47c82a8f4345a6aeff61f93f0d18117a1b.tar.xz
frr-65b65f47c82a8f4345a6aeff61f93f0d18117a1b.zip
zebra: On shutdown, cleanup dplane providers
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra')
-rw-r--r--zebra/zebra_dplane.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c
index 099a6e272..406395123 100644
--- a/zebra/zebra_dplane.c
+++ b/zebra/zebra_dplane.c
@@ -7364,6 +7364,13 @@ void zebra_dplane_shutdown(void)
}
/* TODO -- Clean-up provider objects */
+ dp = dplane_prov_list_first(&zdplane_info.dg_providers);
+ while (dp) {
+ dplane_prov_list_del(&zdplane_info.dg_providers, dp);
+ XFREE(MTYPE_DP_PROV, dp);
+
+ dp = dplane_prov_list_first(&zdplane_info.dg_providers);
+ }
/* TODO -- Clean queue(s), free memory */
}