summaryrefslogtreecommitdiffstats
path: root/bgpd/bgpd.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-11-30 08:22:57 +0100
committerGitHub <noreply@github.com>2023-11-30 08:22:57 +0100
commit3ed1bc81be9a018682ce2570aaf6e5d753c72a8c (patch)
tree2fa886b345f0aa58455d53d3c666b1f0ff02afe0 /bgpd/bgpd.c
parentMerge pull request #14906 from Keelan10/bgp_confederation-leak (diff)
parentbgpd: Free Memory for SRv6 Functions and Locator Chunks (diff)
downloadfrr-3ed1bc81be9a018682ce2570aaf6e5d753c72a8c.tar.xz
frr-3ed1bc81be9a018682ce2570aaf6e5d753c72a8c.zip
Merge pull request #14907 from Keelan10/bgp_srv6-leak
bgpd: Free Memory for SRv6 Functions and Locator Chunks
Diffstat (limited to 'bgpd/bgpd.c')
-rw-r--r--bgpd/bgpd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 8e6de3b4f..4fa021ab9 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -1427,7 +1427,9 @@ static void bgp_srv6_init(struct bgp *bgp)
bgp->srv6_enabled = false;
memset(bgp->srv6_locator_name, 0, sizeof(bgp->srv6_locator_name));
bgp->srv6_locator_chunks = list_new();
+ bgp->srv6_locator_chunks->del = srv6_locator_chunk_list_free;
bgp->srv6_functions = list_new();
+ bgp->srv6_functions->del = (void (*)(void *))srv6_function_free;
}
static void bgp_srv6_cleanup(struct bgp *bgp)