mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 21:10:28 +00:00
Merge pull request #14467 from cscarpitta/bugfix/fix-srv6-isis-memleaks
isisd: Fix memory leaks when IS-IS fails to process an SRv6 locator chunk
This commit is contained in:
commit
1c829fac8e
@ -1136,13 +1136,17 @@ static int isis_zebra_process_srv6_locator_chunk(ZAPI_CALLBACK_ARGS)
|
||||
enum srv6_endpoint_behavior_codepoint behavior;
|
||||
bool allocated = false;
|
||||
|
||||
if (!isis)
|
||||
if (!isis) {
|
||||
srv6_locator_chunk_free(&chunk);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Decode the received zebra message */
|
||||
s = zclient->ibuf;
|
||||
if (zapi_srv6_locator_chunk_decode(s, chunk) < 0)
|
||||
if (zapi_srv6_locator_chunk_decode(s, chunk) < 0) {
|
||||
srv6_locator_chunk_free(&chunk);
|
||||
return -1;
|
||||
}
|
||||
|
||||
sr_debug(
|
||||
"Received SRv6 locator chunk from zebra: name %s, "
|
||||
|
Loading…
Reference in New Issue
Block a user