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') 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 From f20dbcff09f82097937efe4476e78cbb12bee354 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 18 Apr 2023 21:30:05 +0200 Subject: Fix memleak in _inp_rl_linehandler Introduced in 59b99fece. --- src/ui/inputwin.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index 453dfeac..bc689d5f 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -577,6 +577,7 @@ _inp_rl_linehandler(char* line) if (last == NULL || strcmp(last->line, line) != 0) { add_history(line); } + free(history); } static gboolean shift_tab = FALSE; -- cgit 1.4.1-2-gfad0