summaryrefslogtreecommitdiffstats
path: root/ripngd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-10-11 22:21:44 +0200
committerDonald Sharp <sharpd@nvidia.com>2022-10-12 13:39:23 +0200
commitb1d29673ca16e558aea5d632da181555c83980cf (patch)
tree9e39b949fa99d626442ccd30180cccc1e9c77a9a /ripngd
parentripd: Cleanup memory allocations on shutdown (diff)
downloadfrr-b1d29673ca16e558aea5d632da181555c83980cf.tar.xz
frr-b1d29673ca16e558aea5d632da181555c83980cf.zip
ripngd: Cleanup memory allocations on shutdown
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ripngd')
-rw-r--r--ripngd/ripngd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index 1e7a13d7d..755debd0a 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -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;
}