libnm-glib: fix leak in get_permissions_reply()

(cherry picked from commit f2399a6976)
This commit is contained in:
Dan Williams 2016-01-21 11:35:00 -06:00 committed by Thomas Haller
parent d4b15684f3
commit 808f012603

View file

@ -339,6 +339,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);
}