summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-02-21 22:09:36 +0100
committerLubomir Rintel <lkundrak@v3.sk>2022-02-24 16:32:27 +0100
commite80203fe8f8b17ecdbc08cf98d7d11f4336a0e04 (patch)
treefbc623aeb1253f8d0e2191bcf605e4fa83b8e13a
parent2f9f0ec3b08663c25202b13c40696fd76a1d0540 (diff)
platform: fix chaining up finalize() in NMPlatform
This also causes leaks with recent glib, which can be found via valgrind. Fixes: c7b386250369 ('platform: add network namespace support to platform') (cherry picked from commit 1a1c22e38c228095f7b317a3cb762b241ec493e8)
-rw-r--r--src/libnm-platform/nm-platform.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libnm-platform/nm-platform.c b/src/libnm-platform/nm-platform.c
index b95cd95ec9..922f412df7 100644
--- a/src/libnm-platform/nm-platform.c
+++ b/src/libnm-platform/nm-platform.c
@@ -8966,6 +8966,8 @@ finalize(GObject *object)
g_clear_object(&self->_netns);
nm_dedup_multi_index_unref(priv->multi_idx);
nmp_cache_free(priv->cache);
+
+ G_OBJECT_CLASS(nm_platform_parent_class)->finalize(object);
}
static void