mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 02:16:53 +00:00
Merge pull request #6133 from sworleys/NHG-Fix-Dup-Leak
zebra: free unhashable (dup) NHEs via ID table cleanup
This commit is contained in:
commit
85775c5361
@ -223,10 +223,11 @@ void zebra_router_terminate(void)
|
||||
zebra_vxlan_disable();
|
||||
zebra_mlag_terminate();
|
||||
|
||||
hash_clean(zrouter.nhgs, zebra_nhg_hash_free);
|
||||
hash_free(zrouter.nhgs);
|
||||
hash_clean(zrouter.nhgs_id, NULL);
|
||||
/* Free NHE in ID table only since it has unhashable entries as well */
|
||||
hash_clean(zrouter.nhgs_id, zebra_nhg_hash_free);
|
||||
hash_free(zrouter.nhgs_id);
|
||||
hash_clean(zrouter.nhgs, NULL);
|
||||
hash_free(zrouter.nhgs);
|
||||
|
||||
hash_clean(zrouter.rules_hash, zebra_pbr_rules_free);
|
||||
hash_free(zrouter.rules_hash);
|
||||
|
Loading…
Reference in New Issue
Block a user