From efc833a20272eec3ffea2bfefc1805803857daa1 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 15 Jun 2014 21:39:54 +0100 Subject: Free string after use in sending caps response --- src/xmpp/capabilities.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit 1.4.1-2-gfad0