ripngd: 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:44 -04:00
parent 3d1588d8ed
commit b1d29673ca

View File

@ -2581,10 +2581,17 @@ static int ripng_vrf_new(struct vrf *vrf)
static int ripng_vrf_delete(struct vrf *vrf)
{
struct ripng *ripng;
if (IS_RIPNG_DEBUG_EVENT)
zlog_debug("%s: VRF deleted: %s(%u)", __func__, vrf->name,
vrf->vrf_id);
ripng = ripng_lookup_by_vrf_name(vrf->name);
if (!ripng)
return 0;
ripng_clean(ripng);
return 0;
}