]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_ecommunity.c
bgpd: Fix memory leak of ecommunity_ecom2str
[mirror_frr.git] / bgpd / bgp_ecommunity.c
index 85b9ffd8ca27ea859481c37df30df96d02bf19ea..99fe80f055497d5ebe0fec3050404a5f3340b210 100644 (file)
@@ -52,6 +52,11 @@ struct ecommunity *ecommunity_new(void)
                                            sizeof(struct ecommunity));
 }
 
+void ecommunity_strfree(char **s)
+{
+       XFREE(MTYPE_ECOMMUNITY_STR, *s);
+}
+
 /* Allocate ecommunities.  */
 void ecommunity_free(struct ecommunity **ecom)
 {