mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-17 08:23:39 +00:00
Merge pull request #11615 from opensourcerouting/fix/memory_leak_for_community
bgpd: Fix memory leak for community stuff
This commit is contained in:
commit
3adfa0ce55
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user