diff options
author | Thomas Haller <thaller@redhat.com> | 2017-06-21 15:32:23 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-06-29 09:58:28 +0200 |
commit | fd3b4acfda45314605bb1860760abe23fb40e5b7 (patch) | |
tree | 3d7aedb67df9a27ee85cef61e7baab51ca477311 /libnm | |
parent | ffc05b7de2b0a279d16b955f19f7ae4bf91ebd3f (diff) |
libnm: fix leaking init_data in got_object_manager()
Only happens if there are no objects, which would be very unusual.
Diffstat (limited to 'libnm')
-rw-r--r-- | libnm/nm-client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libnm/nm-client.c b/libnm/nm-client.c index 847c6c8de..d9ea5cc95 100644 --- a/libnm/nm-client.c +++ b/libnm/nm-client.c @@ -2457,8 +2457,9 @@ got_object_manager (GObject *object, GAsyncResult *result, gpointer user_data) async_inited_obj_nm, init_data); } g_list_free_full (objects, g_object_unref); + } - } else + if (init_data->pending_init == 0) init_async_complete (init_data); g_signal_connect (priv->object_manager, "notify::name-owner", |