mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 11:40:18 +01:00
libnm-glib: fix leak in nm_remote_connection_get_secrets
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
fbdca67baa
commit
97ededafd9
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue