isisd: Free SRv6 Locator TLV when freeing TLVs

Extend generic TLVs free function to free SRv6 Locator TLVs (RFC 9352
section #7.1).

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
This commit is contained in:
Carmine Scarpitta 2023-02-17 23:28:40 +01:00
parent 5a81a9bd59
commit efb113b9ca

View File

@ -5841,6 +5841,8 @@ void isis_free_tlvs(struct isis_tlvs *tlvs)
free_tlv_threeway_adj(tlvs->threeway_adj);
free_tlv_router_cap(tlvs->router_cap);
free_tlv_spine_leaf(tlvs->spine_leaf);
free_mt_items(ISIS_CONTEXT_LSP, ISIS_TLV_SRV6_LOCATOR,
&tlvs->srv6_locator);
XFREE(MTYPE_ISIS_TLV, tlvs);
}