diff options
author | Thomas Haller <thaller@redhat.com> | 2018-06-20 16:31:18 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-06-20 16:31:18 +0200 |
commit | 4c43d7cad3e5f348b5e3093a9ba103b682b975ae (patch) | |
tree | 86444929f9122f0bab3fb4e4e35938ee940049dd | |
parent | dff157b867ee63a3555eb4b5a00f14010d4d9755 (diff) | |
download | NetworkManager-4c43d7cad3e5f348b5e3093a9ba103b682b975ae.tar.gz |
device: fix leaking internal device factories
Actually, we anyway leak them, because they are added to static hash tables
which are never released. Anyway, get the ref-count right.
-rw-r--r-- | src/devices/nm-device-factory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device-factory.c b/src/devices/nm-device-factory.c index 45fb8e705a..eef3a6c954 100644 --- a/src/devices/nm-device-factory.c +++ b/src/devices/nm-device-factory.c @@ -330,7 +330,7 @@ _load_internal_factory (GType factory_gtype, NMDeviceFactoryManagerFactoryFunc callback, gpointer user_data) { - NMDeviceFactory *factory; + gs_unref_object NMDeviceFactory *factory = NULL; factory = (NMDeviceFactory *) g_object_new (factory_gtype, NULL); _add_factory (factory, NULL, callback, user_data); |