1From 2957d8f6c8bf1189545a7b0c1a49c4ccb26984a1 Mon Sep 17 00:00:00 2001 2From: Thomas Haller <thaller@redhat.com> 3Date: Wed, 15 Apr 2020 14:01:09 +0200 4Subject: [PATCH] rtnl/link: fix leaking rtnl_link_af_ops in link_msg_parser() 5 6Conflict:NA 7Reference:https://github.com/thom311/libnl/commit/2957d8f6c8bf1189545a7b0c1a49c4ccb26984a1 8 9--- 10 lib/route/link.c | 2 ++ 11 1 file changed, 2 insertions(+) 12 13diff --git a/lib/route/link.c b/lib/route/link.c 14index 0ce4b0ab..b73a8c5f 100644 15--- a/lib/route/link.c 16+++ b/lib/route/link.c 17@@ -722,6 +722,8 @@ static int link_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who, 18 int remaining; 19 20 nla_for_each_nested(af_attr, tb[IFLA_AF_SPEC], remaining) { 21+ _nl_auto_rtnl_link_af_ops struct rtnl_link_af_ops *af_ops = NULL; 22+ 23 af_ops = af_lookup_and_alloc(link, nla_type(af_attr)); 24 if (af_ops && af_ops->ao_parse_af) { 25 char *af_data = link->l_af_data[nla_type(af_attr)]; 26