Skip to content

zebra: Fix memory leak when SRv6 explicit SID allocation fails#20429

Merged
ton31337 merged 1 commit intoFRRouting:masterfrom
cscarpitta:fix/fix_srv6_explicit_alloc_memory_leak
Jan 12, 2026
Merged

zebra: Fix memory leak when SRv6 explicit SID allocation fails#20429
ton31337 merged 1 commit intoFRRouting:masterfrom
cscarpitta:fix/fix_srv6_explicit_alloc_memory_leak

Conversation

@cscarpitta
Copy link
Contributor

Ensure that the zebra_srv6_sid_ctx object is properly freed if zebra_srv6_sid_alloc fails, to prevent memory leaks in the SRv6 explicit SID allocation code path.

Ensure that the zebra_srv6_sid_ctx object is properly freed if
zebra_srv6_sid_alloc fails, to prevent memory leaks in the SRv6
explicit SID allocation code path.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
@ton31337
Copy link
Member

@Mergifyio backport stable/10.5 stable/10.4 stable/10.3 stable/10.2

@mergify
Copy link

mergify bot commented Jan 12, 2026

backport stable/10.5 stable/10.4 stable/10.3 stable/10.2

✅ Backports have been created

Details

@ton31337 ton31337 merged commit b939815 into FRRouting:master Jan 12, 2026
21 checks passed
ton31337 added a commit that referenced this pull request Jan 12, 2026
zebra: Fix memory leak when SRv6 explicit SID allocation fails (backport #20429)
donaldsharp added a commit that referenced this pull request Jan 12, 2026
zebra: Fix memory leak when SRv6 explicit SID allocation fails (backport #20429)
donaldsharp added a commit that referenced this pull request Jan 12, 2026
zebra: Fix memory leak when SRv6 explicit SID allocation fails (backport #20429)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants