]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Free up zlookup structure late 3950/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 14 Mar 2019 21:03:26 +0000 (17:03 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 14 Mar 2019 21:03:26 +0000 (17:03 -0400)
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>
pimd/pimd.c

index 656b000579f380d73d633b27e9c7f79e2b2e49aa..889a83a136bdaec25bc9bf9214c2e3f34b368f18 100644 (file)
@@ -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();
 }