about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2023-04-19 17:51:15 +0200
committerGitHub <noreply@github.com>2023-04-19 17:51:15 +0200
commitec87d9ad4e33f51f0dc889e6e5b1d8af4c6ba375 (patch)
treee68f64a475d21dddd3bf2f0264e4fc9151a8b10e /src
parent96f9a84f019d234ad91bd99409cd170c63aec4fc (diff)
parentf20dbcff09f82097937efe4476e78cbb12bee354 (diff)
downloadprofani-tty-ec87d9ad4e33f51f0dc889e6e5b1d8af4c6ba375.tar.gz
Merge pull request #1837 from profanity-im/fix/memleakclientcheck
Fix two recently introduced memleaks
Diffstat (limited to 'src')
-rw-r--r--src/ui/inputwin.c1
-rw-r--r--src/xmpp/stanza.c3
2 files changed, 4 insertions, 0 deletions
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;
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);