Turns out, the valgrind suppression was hiding a memleak
link_delete (NMPlatform *platform, int ifindex)
{
NMLinuxPlatformPrivate *priv = NM_LINUX_PLATFORM_GET_PRIVATE (platform);
- struct rtnl_link *rtnllink = rtnl_link_get (priv->link_cache, ifindex);
+ auto_nl_object struct rtnl_link *rtnllink = rtnl_link_get (priv->link_cache, ifindex);
if (!rtnllink) {
platform->error = NM_PLATFORM_ERROR_NOT_FOUND;
# libnl3
###############################################################
-{
- libnl_01
- Memcheck:Leak
- match-leak-kinds: definite
- fun:calloc
- fun:nl_object_alloc
- fun:link_msg_parser
- fun:__pickup_answer
- fun:nl_cb_call
- fun:recvmsgs
- fun:nl_recvmsgs_report
- fun:nl_recvmsgs
- fun:nl_pickup
- fun:rtnl_link_get_kernel
- ...
-}
{
# fixed by https://github.com/thom311/libnl/commit/d65c32a7205e679c7fc13f0e4565b13e698ba906
libnl_rtnl_link_set_type_01