mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 14:27:36 +00:00
isisd: Fix leaked memory in error case
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
5d920111b9
commit
a3acf37dc2
@ -1546,8 +1546,11 @@ int send_hello(struct isis_circuit *circuit, int level)
|
||||
|
||||
isis_tlvs_add_auth(tlvs, &circuit->passwd);
|
||||
|
||||
if (!listcount(circuit->area->area_addrs))
|
||||
if (!listcount(circuit->area->area_addrs)) {
|
||||
isis_free_tlvs(tlvs);
|
||||
return ISIS_WARNING;
|
||||
}
|
||||
|
||||
isis_tlvs_add_area_addresses(tlvs, circuit->area->area_addrs);
|
||||
|
||||
if (circuit->circ_type == CIRCUIT_T_BROADCAST)
|
||||
|
Loading…
Reference in New Issue
Block a user