forked from Mirror/frr
isisd: Cleanup leaked hash on shut in circuit
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
b44972b65c
commit
2e7d915ca2
|
@ -198,8 +198,8 @@ void isis_circuit_del(struct isis_circuit *circuit)
|
|||
ldp_sync_info_free(&circuit->ldp_sync_info);
|
||||
|
||||
circuit_mt_finish(circuit);
|
||||
isis_lfa_excluded_ifaces_clear(circuit, ISIS_LEVEL1);
|
||||
isis_lfa_excluded_ifaces_clear(circuit, ISIS_LEVEL2);
|
||||
isis_lfa_excluded_ifaces_delete(circuit, ISIS_LEVEL1);
|
||||
isis_lfa_excluded_ifaces_delete(circuit, ISIS_LEVEL2);
|
||||
|
||||
list_delete(&circuit->ip_addrs);
|
||||
list_delete(&circuit->ipv6_link);
|
||||
|
|
|
@ -238,10 +238,10 @@ void isis_lfa_excluded_ifaces_init(struct isis_circuit *circuit, int level)
|
|||
*
|
||||
* @param nodes List of SPF nodes
|
||||
*/
|
||||
void isis_lfa_excluded_ifaces_clear(struct isis_circuit *circuit, int level)
|
||||
void isis_lfa_excluded_ifaces_delete(struct isis_circuit *circuit, int level)
|
||||
{
|
||||
hash_clean(circuit->lfa_excluded_ifaces[level - 1],
|
||||
lfa_excl_interface_hash_free);
|
||||
hash_clean_and_free(&circuit->lfa_excluded_ifaces[level - 1],
|
||||
lfa_excl_interface_hash_free);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -133,7 +133,7 @@ struct lfa_tiebreaker *isis_lfa_tiebreaker_add(struct isis_area *area,
|
|||
void isis_lfa_tiebreaker_delete(struct isis_area *area, int level,
|
||||
struct lfa_tiebreaker *tie_b);
|
||||
void isis_lfa_excluded_ifaces_init(struct isis_circuit *circuit, int level);
|
||||
void isis_lfa_excluded_ifaces_clear(struct isis_circuit *circuit, int level);
|
||||
void isis_lfa_excluded_ifaces_delete(struct isis_circuit *circuit, int level);
|
||||
void isis_lfa_excluded_iface_add(struct isis_circuit *circuit, int level,
|
||||
const char *ifname);
|
||||
void isis_lfa_excluded_iface_delete(struct isis_circuit *circuit, int level,
|
||||
|
|
Loading…
Reference in a new issue