]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospf6d/ospf6_asbr.c
Merge pull request #12196 from opensourcerouting/xref-vtysh
[mirror_frr.git] / ospf6d / ospf6_asbr.c
index 0daa9ff31ec0a3944bd9e17b01ef8febfd464ed5..07061b6f578fa493229504c56c3806cf6fa25ed9 100644 (file)
@@ -3167,6 +3167,14 @@ void ospf6_external_aggregator_free(struct ospf6_external_aggr_rt *aggr)
                hash_clean(aggr->match_extnl_hash,
                        ospf6_aggr_unlink_external_info);
 
+       if (aggr->route) {
+               if (aggr->route->route_option)
+                       XFREE(MTYPE_OSPF6_EXTERNAL_INFO,
+                             aggr->route->route_option);
+
+               ospf6_route_delete(aggr->route);
+       }
+
        if (IS_OSPF6_DEBUG_AGGR)
                zlog_debug("%s: Release the aggregator Address(%pFX)",
                                                __func__,