From 97ededafd9ee510c492722cc7b86489714335430 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 30 Jan 2014 10:40:51 +0100 Subject: [PATCH] libnm-glib: fix leak in nm_remote_connection_get_secrets Signed-off-by: Thomas Haller --- libnm-glib/nm-remote-connection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libnm-glib/nm-remote-connection.c b/libnm-glib/nm-remote-connection.c index 27baebd095..35c5be8b2a 100644 --- a/libnm-glib/nm-remote-connection.c +++ b/libnm-glib/nm-remote-connection.c @@ -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); }