diff options
author | Russ White <russ@riw.us> | 2023-10-10 17:05:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-10 17:05:11 +0200 |
commit | cc63e16a52117fd83318e70e65d9bdbe08bb00fc (patch) | |
tree | c50ca9c372ba2928eb148cc28a5ff82d0a1a2c8f | |
parent | Merge pull request #14550 from Keelan10/fix-nexthop_group-leak (diff) | |
parent | zebra: Prevent leaking ctx memory in err condition (diff) | |
download | frr-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.c | 1 |
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])); |