about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-06-15 21:39:54 +0100
committerJames Booth <boothj5@gmail.com>2014-06-15 21:39:54 +0100
commitefc833a20272eec3ffea2bfefc1805803857daa1 (patch)
tree47e17f2aaee9ed8b1105252c18f370ede00f600c
parentd89ac912eb379f571ec37e59aea7e1e1d4b39ed5 (diff)
downloadprofani-tty-efc833a20272eec3ffea2bfefc1805803857daa1.tar.gz
Free string after use in sending caps response
-rw-r--r--src/xmpp/capabilities.c1
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);