From: Donald Sharp Date: Thu, 14 Mar 2019 21:03:26 +0000 (-0400) Subject: pimd: Free up zlookup structure late X-Git-Tag: 7.1_pulled~167^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F3950%2Fhead;p=mirror%2Ffrr.git 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 --- diff --git a/pimd/pimd.c b/pimd/pimd.c index 656b000579..889a83a136 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(); }