diff options
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_main.c | 1 | ||||
-rw-r--r-- | bgpd/bgpd.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index 7dd4253b2..a720d31a7 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c @@ -221,6 +221,7 @@ static __attribute__((__noreturn__)) void bgp_exit(int status) #endif bgp_zebra_destroy(); + bf_free(bm->rd_idspace); list_delete_and_null(&bm->bgp); memset(bm, 0, sizeof(*bm)); diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 6a96ed99b..4e5fe1c7e 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -7564,8 +7564,6 @@ void bgp_terminate(void) /* reverse bgp_master_init */ bgp_close(); - bf_free(bm->rd_idspace); - if (bm->listen_sockets) list_delete_and_null(&bm->listen_sockets); |