Some more memory improvements

* Less leaks
* Less allocations

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
Steffen Jaeckel
2025-03-07 22:31:58 +01:00
parent 9fc0326428
commit 95c2199ca2
10 changed files with 63 additions and 21 deletions

View File

@@ -174,6 +174,10 @@ _otr_shutdown(void)
free(jid);
jid = NULL;
}
if (user_state) {
otrl_userstate_free(user_state);
user_state = NULL;
}
otrlib_shutdown();
}