From aed536d44ff6b612109e669c4ca2bff4d4312ad9 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 14 Mar 2019 17:03:26 -0400 Subject: 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 --- pimd/pimd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pimd/pimd.c') 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(); } -- cgit v1.2.3