1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Fix memory leak in cons_show_disco_info()

This commit is contained in:
Dmitry Podgorny 2020-04-06 13:29:36 +03:00
parent eb2165e0a4
commit ba291a03f4

View File

@ -751,7 +751,7 @@ cons_show_disco_info(const char *jid, GSList *identities, GSList *features)
identity_str = g_string_append(identity_str, identity->category); identity_str = g_string_append(identity_str, identity->category);
} }
cons_show(identity_str->str); cons_show(identity_str->str);
g_string_free(identity_str, FALSE); g_string_free(identity_str, TRUE);
identities = g_slist_next(identities); identities = g_slist_next(identities);
} }