diff options
author | James Booth <boothj5@gmail.com> | 2014-06-15 21:39:54 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-06-15 21:39:54 +0100 |
commit | efc833a20272eec3ffea2bfefc1805803857daa1 (patch) | |
tree | 47e17f2aaee9ed8b1105252c18f370ede00f600c | |
parent | d89ac912eb379f571ec37e59aea7e1e1d4b39ed5 (diff) | |
download | profani-tty-efc833a20272eec3ffea2bfefc1805803857daa1.tar.gz |
Free string after use in sending caps response
-rw-r--r-- | src/xmpp/capabilities.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmpp/capabilities.c b/src/xmpp/capabilities.c index 5f2ad422..033b46df 100644 --- a/src/xmpp/capabilities.c +++ b/src/xmpp/capabilities.c @@ -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); |