Merge pull request #3421 from pguibert6WIND/bgp_lp_finish_called_too_early

bgpd: delay destruction of label pool
This commit is contained in:
Donald Sharp 2018-12-06 19:30:18 -05:00 committed by GitHub
commit 3b2298e76b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -235,6 +235,9 @@ static __attribute__((__noreturn__)) void bgp_exit(int status)
bf_free(bm->rd_idspace);
list_delete(&bm->bgp);
bgp_lp_finish();
memset(bm, 0, sizeof(*bm));
frr_fini();

View File

@ -7963,5 +7963,4 @@ void bgp_terminate(void)
if (bm->t_rmap_update)
BGP_TIMER_OFF(bm->t_rmap_update);
bgp_lp_finish();
}