about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2023-04-18 20:26:24 +0200
committerMichael Vetter <jubalh@iodoru.org>2023-04-18 20:26:24 +0200
commitabaf96dcefb929121a877bf3ce80b6defe2d9f3c (patch)
tree759202fd6761e23aa8ca43e55bbdfe73001065b1 /src/xmpp
parent96f9a84f019d234ad91bd99409cd170c63aec4fc (diff)
downloadprofani-tty-abaf96dcefb929121a877bf3ce80b6defe2d9f3c.tar.gz
Fix memleak in stanza_create_caps_query_element
Got introduced with 5d3c8ce7c.
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/stanza.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c
index bf353113..4be45301 100644
--- a/src/xmpp/stanza.c
+++ b/src/xmpp/stanza.c
@@ -995,6 +995,9 @@ stanza_create_caps_query_element(xmpp_ctx_t* ctx)
 #endif
         }
     }
+
+    account_free(account);
+
     xmpp_stanza_set_attribute(identity, "name", name_str->str);
     g_string_free(name_str, TRUE);
     xmpp_stanza_add_child(query, identity);