From abaf96dcefb929121a877bf3ce80b6defe2d9f3c Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 18 Apr 2023 20:26:24 +0200 Subject: Fix memleak in stanza_create_caps_query_element Got introduced with 5d3c8ce7c. --- src/xmpp/stanza.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/xmpp/stanza.c') 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); -- cgit 1.4.1-2-gfad0