From 77ef4de29ec72cd26833fdb5e68d79d44cdaafe5 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 5 Sep 2016 23:19:22 +0100 Subject: [PATCH] Free hashtable key list in connection_jid_for_feature() --- src/xmpp/connection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index 8a963bb4..70ca12b0 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -297,6 +297,7 @@ connection_jid_for_feature(const char *const feature) char *jid = curr->data; GHashTable *features = g_hash_table_lookup(conn.features_by_jid, jid); if (features && g_hash_table_lookup(features, feature)) { + g_list_free(jids); return jid; }