mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 06:34:51 +00:00
ripd: Cleanup memory allocations on shutdown
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
823d80d155
commit
3d1588d8ed
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user