]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_community.c
Merge pull request #12390 from sigeryang/vrrp-interop
[mirror_frr.git] / bgpd / bgp_community.c
index 78cf9ea76c8fe2a6de544fa69147d4590ddc601a..9f6f337c8808f852ddfc91a9b4b0c120e82ee415 100644 (file)
@@ -914,8 +914,16 @@ void community_init(void)
                            "BGP Community Hash");
 }
 
+static void community_hash_free(void *data)
+{
+       struct community *com = data;
+
+       community_free(&com);
+}
+
 void community_finish(void)
 {
+       hash_clean(comhash, community_hash_free);
        hash_free(comhash);
        comhash = NULL;
 }