1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Fix memleak in stanza_create_caps_query_element

Got introduced with 5d3c8ce7c.
This commit is contained in:
Michael Vetter 2023-04-18 20:26:24 +02:00
parent 96f9a84f01
commit abaf96dcef

View File

@ -995,6 +995,9 @@ stanza_create_caps_query_element(xmpp_ctx_t* ctx)
#endif
}
}
account_free(account);
xmpp_stanza_set_attribute(identity, "name", name_str->str);
g_string_free(name_str, TRUE);
xmpp_stanza_add_child(query, identity);