netconf_msg_parser is leaking memory. Add the put in the newly
allocated nc object to release the initial reference.
Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
http://lists.infradead.org/pipermail/libnl/2017-September/002378.html
nc->ce_mask |= NETCONF_ATTR_INPUT;
}
- return pp->pp_cb((struct nl_object *) nc, pp);
+ err = pp->pp_cb((struct nl_object *) nc, pp);
+
+ rtnl_netconf_put(nc);
+ return err;
}
static int netconf_request_update(struct nl_cache *cache, struct nl_sock *sk)