Skip to content

Commit

Permalink
isisd: Free SRv6 End SID when freeing Sub-TLVs
Browse files Browse the repository at this point in the history
Extend generic Sub-TLVs free function to free SRv6 End SID Sub-TLVs
(RFC 9352 section sonic-net#7.2).

Signed-off-by: Carmine Scarpitta <[email protected]>
  • Loading branch information
cscarpitta committed Sep 11, 2023
1 parent 64d3629 commit 47dc349
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions isisd/isis_tlvs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2029,6 +2029,9 @@ static void isis_free_subtlvs(struct isis_subtlvs *subtlvs)

XFREE(MTYPE_ISIS_SUBTLV, subtlvs->source_prefix);

free_items(subtlvs->context, ISIS_SUBTLV_SRV6_END_SID,
&subtlvs->srv6_end_sids);

XFREE(MTYPE_ISIS_SUBTLV, subtlvs);
}

Expand Down

0 comments on commit 47dc349

Please sign in to comment.