]> git.proxmox.com Git - mirror_frr.git/commitdiff
ripngd: Cleanup memory allocations on shutdown
authorDonald Sharp <sharpd@nvidia.com>
Tue, 11 Oct 2022 20:21:44 +0000 (16:21 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 12 Oct 2022 11:39:23 +0000 (07:39 -0400)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
ripngd/ripngd.c

index 1e7a13d7dc61e1f2d03a8257c37f1f8c13e3e936..755debd0a4ec7a0a00e0366b9732bd56a45ff876 100644 (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;
 }