forked from Mirror/frr
ripd: Cleanup memory on shutdown
a) routemap data was not being cleaned up b) rip data structure was not being cleaned up Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
6d86d1cfb6
commit
c0dc9d329f
|
@ -67,12 +67,24 @@ static void sighup(void)
|
|||
/* SIGINT handler. */
|
||||
static void sigint(void)
|
||||
{
|
||||
struct vrf *vrf;
|
||||
|
||||
zlog_notice("Terminating on signal");
|
||||
|
||||
bfd_protocol_integration_set_shutdown(true);
|
||||
|
||||
RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) {
|
||||
if (!vrf->info)
|
||||
continue;
|
||||
|
||||
rip_clean(vrf->info);
|
||||
}
|
||||
|
||||
rip_vrf_terminate();
|
||||
if_rmap_terminate();
|
||||
rip_zclient_stop();
|
||||
|
||||
route_map_finish();
|
||||
frr_fini();
|
||||
|
||||
exit(0);
|
||||
|
|
Loading…
Reference in a new issue