summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2013-10-22 13:24:49 +0200
committerThomas Haller <thaller@redhat.com>2013-10-22 19:53:57 +0200
commit1c93b24829d61e58624bf2dd20ebb34b3fceabea (patch)
treee3ac8d0e017d5ef6393c6ed91c4cf2f3b87064b3
parent35b19dcfc3476559fbebe5c0e42ad1ba4f726304 (diff)
downloadNetworkManager-1c93b24829d61e58624bf2dd20ebb34b3fceabea.tar.gz
core: fix memory leak in nm-agent-manager
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--src/settings/nm-agent-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings/nm-agent-manager.c b/src/settings/nm-agent-manager.c
index 1f7034ee7c..5d1c519efa 100644
--- a/src/settings/nm-agent-manager.c
+++ b/src/settings/nm-agent-manager.c
@@ -1570,7 +1570,7 @@ dispose (GObject *object)
nm_auth_changed_func_unregister (authority_changed_cb, NM_AGENT_MANAGER (object));
- g_slist_foreach (priv->chains, (GFunc) nm_auth_chain_unref, NULL);
+ g_slist_free_full (priv->chains, (GDestroyNotify) nm_auth_chain_unref);
g_hash_table_destroy (priv->agents);
g_hash_table_destroy (priv->requests);