mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 16:30:07 +01:00
libnm-glib: fix leak in get_permissions_reply()
This commit is contained in:
parent
3254965067
commit
f2399a6976
1 changed files with 2 additions and 0 deletions
|
|
@ -344,6 +344,8 @@ get_permissions_reply (DBusGProxy *proxy,
|
|||
G_TYPE_INVALID);
|
||||
NM_CLIENT_GET_PRIVATE (self)->perm_call = NULL;
|
||||
update_permissions (NM_CLIENT (user_data), error ? NULL : permissions);
|
||||
if (permissions)
|
||||
g_hash_table_destroy (permissions);
|
||||
g_clear_error (&error);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue