mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Free string after use in sending caps response
This commit is contained in:
parent
d89ac912eb
commit
efc833a202
@ -238,6 +238,7 @@ caps_create_query_response_stanza(xmpp_ctx_t * const ctx)
|
||||
#endif
|
||||
}
|
||||
xmpp_stanza_set_attribute(identity, "name", name_str->str);
|
||||
g_string_free(name_str, TRUE);
|
||||
|
||||
xmpp_stanza_t *feature_caps = xmpp_stanza_new(ctx);
|
||||
xmpp_stanza_set_name(feature_caps, STANZA_NAME_FEATURE);
|
||||
|
Loading…
Reference in New Issue
Block a user