libnm-glib: fix leak in nm_remote_connection_get_secrets

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-01-30 10:40:51 +01:00
parent fbdca67baa
commit 97ededafd9

View file

@ -320,6 +320,8 @@ get_secrets_cb (DBusGProxy *proxy, DBusGProxyCall *proxy_call, gpointer user_dat
DBUS_TYPE_G_MAP_OF_MAP_OF_VARIANT, &secrets,
G_TYPE_INVALID);
(*func)(call->self, error ? NULL : secrets, error, call->user_data);
if (secrets)
g_hash_table_destroy (secrets);
g_clear_error (&error);
remote_call_complete (call->self, call);
}