This commit is contained in:
Donald Sharp 2025-04-29 16:20:41 +00:00 committed by GitHub
commit 263f53ecb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -200,6 +200,8 @@ static __attribute__((__noreturn__)) void bgp_exit(int status)
bgp_default = bgp_get_default();
bgp_evpn = bgp_get_evpn();
bgp_lp_finish();
/* reverse bgp_master_init */
for (ALL_LIST_ELEMENTS(bm->bgp, node, nnode, bgp)) {
if (bgp_default == bgp || bgp_evpn == bgp)
@ -267,8 +269,6 @@ static __attribute__((__noreturn__)) void bgp_exit(int status)
list_delete(&bm->bgp);
list_delete(&bm->addresses);
bgp_lp_finish();
memset(bm, 0, sizeof(*bm));
frr_fini();