diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config/accounts.c | 4 | ||||
-rw-r--r-- | src/event/server_events.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/config/accounts.c b/src/config/accounts.c index 774adc0d..6018cfff 100644 --- a/src/config/accounts.c +++ b/src/config/accounts.c @@ -958,6 +958,10 @@ accounts_get_login_status(const char* const account_name) if (g_strcmp0(setting, "last") == 0) { status = accounts_get_last_status(account_name); } + + if (setting) { + g_free(setting); + } return status; } diff --git a/src/event/server_events.c b/src/event/server_events.c index 7e5e3d7d..6e21fbd6 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -193,7 +193,8 @@ sv_ev_roster_received(void) cl_ev_presence_send(conn_presence, 0); } - free(last_activity_str); + g_free(status_message); + g_free(last_activity_str); const char* fulljid = connection_get_fulljid(); plugins_on_connect(account_name, fulljid); |