diff options
| author | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-12-15 13:15:47 -0800 |
|---|---|---|
| committer | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-12-15 13:15:47 -0800 |
| commit | 3d57c99404bf5490ddcd803e24594000e10f2731 (patch) | |
| tree | d5cd16166dff70a3cece57b2450fefd059993f92 | |
| parent | c3830801767f7b68e16c80e610922d7dc17d6646 (diff) | |
bgpd: rd_idspace should be freed in bgp_exit
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
| -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 7dd4253b2e..a720d31a76 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 6a96ed99bc..4e5fe1c7ea 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); |
