mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-25 04:46:22 +00:00
Free hashtable key list in connection_jid_for_feature()
This commit is contained in:
@@ -297,6 +297,7 @@ connection_jid_for_feature(const char *const feature)
|
|||||||
char *jid = curr->data;
|
char *jid = curr->data;
|
||||||
GHashTable *features = g_hash_table_lookup(conn.features_by_jid, jid);
|
GHashTable *features = g_hash_table_lookup(conn.features_by_jid, jid);
|
||||||
if (features && g_hash_table_lookup(features, feature)) {
|
if (features && g_hash_table_lookup(features, feature)) {
|
||||||
|
g_list_free(jids);
|
||||||
return jid;
|
return jid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user