diff options
author | Dan Williams <dcbw@redhat.com> | 2016-01-21 11:35:00 -0600 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-01-26 12:07:55 +0100 |
commit | 808f0126035a09c946c559c9b1c464c4523a8a0e (patch) | |
tree | 6ee071e3368825deb29405f1061860924b08c9c7 | |
parent | d4b15684f360cc04ad2c0af8a44e46c91f3373be (diff) | |
download | NetworkManager-808f0126035a09c946c559c9b1c464c4523a8a0e.tar.gz |
libnm-glib: fix leak in get_permissions_reply()
(cherry picked from commit f2399a69760e8d14b91e523127eb187d6337530f)
-rw-r--r-- | libnm-glib/nm-client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libnm-glib/nm-client.c b/libnm-glib/nm-client.c index 40add09c76..6d17294390 100644 --- a/libnm-glib/nm-client.c +++ b/libnm-glib/nm-client.c @@ -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); } |