Fix some more memory leaks + an invalid read.

`ProfMessage` was not completely initialized, fix this by using `calloc()`
for the allocation.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
Steffen Jaeckel
2025-03-07 11:49:08 +01:00
parent 93fc4ecd8b
commit b55bf6e4bd
6 changed files with 24 additions and 11 deletions

View File

@@ -169,6 +169,7 @@ otr_start_query(void)
static void
_otr_shutdown(void)
{
g_hash_table_destroy(smp_initiators);
if (jid) {
free(jid);
jid = NULL;