Merge pull request #1837 from profanity-im/fix/memleakclientcheck

Fix two recently introduced memleaks
This commit is contained in:
Michael Vetter
2023-04-19 17:51:15 +02:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -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;

View File

@@ -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);