diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-03-14 22:03:26 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-03-14 22:03:26 +0100 |
commit | aed536d44ff6b612109e669c4ca2bff4d4312ad9 (patch) | |
tree | effb3e38e1bfe7d322a5051edbf00290f0eac5df /pimd/pimd.c | |
parent | Merge pull request #3936 from donaldsharp/ospf_1000_club (diff) | |
download | frr-aed536d44ff6b612109e669c4ca2bff4d4312ad9.tar.xz frr-aed536d44ff6b612109e669c4ca2bff4d4312ad9.zip |
pimd: Free up zlookup structure late
When we are shutting down, delay the zlookup free to as
late as possible since we may need it still
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pimd.c')
-rw-r--r-- | pimd/pimd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pimd.c b/pimd/pimd.c index 656b00057..889a83a13 100644 --- a/pimd/pimd.c +++ b/pimd/pimd.c @@ -127,8 +127,6 @@ void pim_terminate(void) { struct zclient *zclient; - pim_free(); - /* reverse prefix_list_init */ prefix_list_add_hook(NULL); prefix_list_delete_hook(NULL); @@ -142,6 +140,8 @@ void pim_terminate(void) zclient_free(zclient); } + pim_free(); pim_router_terminate(); + frr_fini(); } |