summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2023-10-10 17:05:11 +0200
committerGitHub <noreply@github.com>2023-10-10 17:05:11 +0200
commitcc63e16a52117fd83318e70e65d9bdbe08bb00fc (patch)
treec50ca9c372ba2928eb148cc28a5ff82d0a1a2c8f
parentMerge pull request #14550 from Keelan10/fix-nexthop_group-leak (diff)
parentzebra: Prevent leaking ctx memory in err condition (diff)
downloadfrr-cc63e16a52117fd83318e70e65d9bdbe08bb00fc.tar.xz
frr-cc63e16a52117fd83318e70e65d9bdbe08bb00fc.zip
Merge pull request #14548 from raja-rajasekar/frr_dev1
zebra: Prevent leaking ctx memory in err condition
-rw-r--r--zebra/if_netlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c
index 61a8c6a78..ed2e0a224 100644
--- a/zebra/if_netlink.c
+++ b/zebra/if_netlink.c
@@ -1622,6 +1622,7 @@ int netlink_link_change(struct nlmsghdr *h, ns_id_t ns_id, int startup)
zlog_debug(
"RTM_NEWLINK for interface %s(%u) without MTU set",
name, ifi->ifi_index);
+ dplane_ctx_fini(&ctx);
return 0;
}
dplane_ctx_set_ifp_mtu(ctx, *(int *)RTA_DATA(tb[IFLA_MTU]));