diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-11-15 13:47:41 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-11-21 12:39:07 -0500 |
| commit | 65b65f47c82a8f4345a6aeff61f93f0d18117a1b (patch) | |
| tree | c74e1c086e0c163f17aafafb75ce1e2a21d7e4ae /zebra/zebra_dplane.c | |
| parent | d3adb8a8f6d8671ec2e6b493cb9509c45fb0af32 (diff) | |
zebra: On shutdown, cleanup dplane providers
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_dplane.c')
| -rw-r--r-- | zebra/zebra_dplane.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index 099a6e2725..4063951233 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 */ } |
