forked from Mirror/frr
bfdd: Free zclient memory on shutdown
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
65b65f47c8
commit
a3dfb08662
|
@ -782,6 +782,7 @@ void bfdd_cli_init(void);
|
|||
*/
|
||||
void bfdd_zclient_init(struct zebra_privs_t *bfdd_priv);
|
||||
void bfdd_zclient_stop(void);
|
||||
void bfdd_zclient_terminate(void);
|
||||
void bfdd_zclient_unregister(vrf_id_t vrf_id);
|
||||
void bfdd_zclient_register(vrf_id_t vrf_id);
|
||||
void bfdd_sessions_enable_vrf(struct vrf *vrf);
|
||||
|
|
|
@ -75,6 +75,8 @@ static void sigterm_handler(void)
|
|||
|
||||
bfd_vrf_terminate();
|
||||
|
||||
bfdd_zclient_terminate();
|
||||
|
||||
/* Terminate and free() FRR related memory. */
|
||||
frr_fini();
|
||||
|
||||
|
|
|
@ -859,6 +859,11 @@ void bfdd_zclient_stop(void)
|
|||
pc_free_all();
|
||||
}
|
||||
|
||||
void bfdd_zclient_terminate(void)
|
||||
{
|
||||
zclient_free(zclient);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Client handling.
|
||||
|
|
Loading…
Reference in a new issue