mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 13:18:52 +00:00
ripngd: Cleanup memory on shutdown
a) routemap data was not being cleaned up b) ripng data structure was not being cleaned up Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
c0dc9d329f
commit
ad831a4f72
@ -66,11 +66,23 @@ static void sighup(void)
|
|||||||
/* SIGINT handler. */
|
/* SIGINT handler. */
|
||||||
static void sigint(void)
|
static void sigint(void)
|
||||||
{
|
{
|
||||||
|
struct vrf *vrf;
|
||||||
|
|
||||||
zlog_notice("Terminating on signal");
|
zlog_notice("Terminating on signal");
|
||||||
|
|
||||||
|
RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) {
|
||||||
|
if (!vrf->info)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
ripng_clean(vrf->info);
|
||||||
|
}
|
||||||
|
|
||||||
ripng_vrf_terminate();
|
ripng_vrf_terminate();
|
||||||
if_rmap_terminate();
|
if_rmap_terminate();
|
||||||
ripng_zebra_stop();
|
ripng_zebra_stop();
|
||||||
|
|
||||||
|
route_map_finish();
|
||||||
|
|
||||||
frr_fini();
|
frr_fini();
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user