mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 21:54:01 +00:00
isisd: Free up some memory allocated.
The v4 and v6 prefixes were created but not deleted on shutdown properly. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
78afca8e78
commit
25b1001dc9
@ -293,6 +293,7 @@ void isis_circuit_del_addr(struct isis_circuit *circuit,
|
|||||||
|
|
||||||
if (ip) {
|
if (ip) {
|
||||||
listnode_delete(circuit->ip_addrs, ip);
|
listnode_delete(circuit->ip_addrs, ip);
|
||||||
|
prefix_ipv4_free(ip);
|
||||||
if (circuit->area)
|
if (circuit->area)
|
||||||
lsp_regenerate_schedule(circuit->area,
|
lsp_regenerate_schedule(circuit->area,
|
||||||
circuit->is_type, 0);
|
circuit->is_type, 0);
|
||||||
@ -328,6 +329,7 @@ void isis_circuit_del_addr(struct isis_circuit *circuit,
|
|||||||
}
|
}
|
||||||
if (ip6) {
|
if (ip6) {
|
||||||
listnode_delete(circuit->ipv6_link, ip6);
|
listnode_delete(circuit->ipv6_link, ip6);
|
||||||
|
prefix_ipv6_free(ip6);
|
||||||
found = 1;
|
found = 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -339,6 +341,7 @@ void isis_circuit_del_addr(struct isis_circuit *circuit,
|
|||||||
}
|
}
|
||||||
if (ip6) {
|
if (ip6) {
|
||||||
listnode_delete(circuit->ipv6_non_link, ip6);
|
listnode_delete(circuit->ipv6_non_link, ip6);
|
||||||
|
prefix_ipv6_free(ip6);
|
||||||
found = 1;
|
found = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user