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

@@ -72,6 +72,7 @@ static EntityCapabilities* _caps_copy(EntityCapabilities* caps);
static void
_caps_close(void)
{
caps_reset_ver();
free_keyfile(&caps_prof_keyfile);
cache = NULL;
g_hash_table_destroy(jid_to_ver);