mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 15:16:21 +00:00
Merge pull request #1837 from profanity-im/fix/memleakclientcheck
Fix two recently introduced memleaks
This commit is contained in:
@@ -577,6 +577,7 @@ _inp_rl_linehandler(char* line)
|
|||||||
if (last == NULL || strcmp(last->line, line) != 0) {
|
if (last == NULL || strcmp(last->line, line) != 0) {
|
||||||
add_history(line);
|
add_history(line);
|
||||||
}
|
}
|
||||||
|
free(history);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean shift_tab = FALSE;
|
static gboolean shift_tab = FALSE;
|
||||||
|
|||||||
@@ -995,6 +995,9 @@ stanza_create_caps_query_element(xmpp_ctx_t* ctx)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
account_free(account);
|
||||||
|
|
||||||
xmpp_stanza_set_attribute(identity, "name", name_str->str);
|
xmpp_stanza_set_attribute(identity, "name", name_str->str);
|
||||||
g_string_free(name_str, TRUE);
|
g_string_free(name_str, TRUE);
|
||||||
xmpp_stanza_add_child(query, identity);
|
xmpp_stanza_add_child(query, identity);
|
||||||
|
|||||||
Reference in New Issue
Block a user