ripd: Cleanup memory allocations on shutdown

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2022-10-11 16:21:30 -04:00
parent 823d80d155
commit 3d1588d8ed

View File

@ -3551,10 +3551,18 @@ static int rip_vrf_new(struct vrf *vrf)
static int rip_vrf_delete(struct vrf *vrf)
{
struct rip *rip;
if (IS_RIP_DEBUG_EVENT)
zlog_debug("%s: VRF deleted: %s(%u)", __func__, vrf->name,
vrf->vrf_id);
rip = rip_lookup_by_vrf_name(vrf->name);
if (!rip)
return 0;
rip_clean(rip);
return 0;
}