mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Merge pull request #1837 from profanity-im/fix/memleakclientcheck
Fix two recently introduced memleaks
This commit is contained in:
commit
ec87d9ad4e
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user