1
1
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:
Michael Vetter 2023-04-19 17:51:15 +02:00 committed by GitHub
commit ec87d9ad4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);