summaryrefslogtreecommitdiff
path: root/bgpd/bgp_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_main.c')
-rw-r--r--bgpd/bgp_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c
index 3aa16b2632..50ca7eda4c 100644
--- a/bgpd/bgp_main.c
+++ b/bgpd/bgp_main.c
@@ -253,9 +253,6 @@ bgp_exit (int status)
bgp_delete (bgp);
list_free (bm->bgp);
- /* reverse bgp_attr_init */
- bgp_attr_finish ();
-
/* reverse bgp_dump_init */
bgp_dump_finish ();
@@ -265,6 +262,9 @@ bgp_exit (int status)
/* cleanup route maps */
bgp_route_map_terminate();
+ /* reverse bgp_attr_init */
+ bgp_attr_finish ();
+
/* reverse access_list_init */
access_list_add_hook (NULL);
access_list_delete_hook (NULL);