mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Free hashtable key list in connection_jid_for_feature()
This commit is contained in:
parent
74148dd6a2
commit
77ef4de29e
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user