mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
zebra: On shutdown call appropriate finish functions
The vrf_terminate and route_map_finish functions are not being called and as such memory was being dropped on shutdown. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
efb2aeae7b
commit
ae74af996f
|
@ -440,8 +440,6 @@ void eigrp_if_free(struct eigrp_interface *ei, int source)
|
|||
pe);
|
||||
|
||||
eigrp_if_down(ei);
|
||||
|
||||
eigrp_interface_hash_del(&ei->eigrp->eifs, ei);
|
||||
}
|
||||
|
||||
/* Simulate down/up on the interface. This is needed, for example, when
|
||||
|
|
|
@ -98,6 +98,7 @@ static void sigint(void)
|
|||
|
||||
keychain_terminate();
|
||||
|
||||
route_map_finish();
|
||||
eigrp_terminate();
|
||||
|
||||
exit(0);
|
||||
|
|
|
@ -241,6 +241,7 @@ void eigrp_terminate(void)
|
|||
|
||||
eigrp_zebra_stop();
|
||||
|
||||
vrf_terminate();
|
||||
frr_fini();
|
||||
}
|
||||
|
||||
|
@ -263,7 +264,7 @@ void eigrp_finish_final(struct eigrp *eigrp)
|
|||
nbr = eigrp_nbr_hash_first(&ei->nbr_hash_head);
|
||||
eigrp_nbr_delete(nbr);
|
||||
}
|
||||
eigrp_if_free(ei, INTERFACE_DOWN_BY_FINAL);
|
||||
eigrp_if_delete_hook(ei->ifp);
|
||||
}
|
||||
|
||||
EVENT_OFF(eigrp->t_write);
|
||||
|
|
Loading…
Reference in a new issue