summaryrefslogtreecommitdiff
path: root/zebra/rt_netlink.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-12-12 16:30:21 +0200
committerGitHub <noreply@github.com>2023-12-12 16:30:21 +0200
commit7163844e77d98b491f5c2ff26d03856d88cf0c78 (patch)
treec9cd94a6d8212b29f07fd229f4fa090506e09f53 /zebra/rt_netlink.c
parenta32620de4e27285c0c3482f385fcf03c3b6542f1 (diff)
parentff23fdfb4b33aa636aa09d144f0865dd5751551a (diff)
Merge pull request #14988 from FRRouting/mergify/bp/stable/9.1/pr-14983
zebra: The dplane_fpm_nl return path leaks memory (backport #14983)
Diffstat (limited to 'zebra/rt_netlink.c')
-rw-r--r--zebra/rt_netlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index b8362bbba5..7b29c05498 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -1025,6 +1025,8 @@ int netlink_route_change_read_unicast_internal(struct nlmsghdr *h,
re, ng, startup, ctx);
if (ng)
nexthop_group_delete(&ng);
+ if (ctx)
+ zebra_rib_route_entry_free(re);
} else {
/*
* I really don't see how this is possible