mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-01 21:26:22 +00:00
Free string after use in sending caps response
This commit is contained in:
@@ -238,6 +238,7 @@ caps_create_query_response_stanza(xmpp_ctx_t * const ctx)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
xmpp_stanza_set_attribute(identity, "name", name_str->str);
|
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_t *feature_caps = xmpp_stanza_new(ctx);
|
||||||
xmpp_stanza_set_name(feature_caps, STANZA_NAME_FEATURE);
|
xmpp_stanza_set_name(feature_caps, STANZA_NAME_FEATURE);
|
||||||
|
|||||||
Reference in New Issue
Block a user