about summary refs log tree commit diff stats
path: root/src/command/cmd_funcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r--src/command/cmd_funcs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 9a3d2c93..7b303b95 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -3656,6 +3656,11 @@ cmd_join(ProfWin *window, const char *const command, gchar **args)
     jid_destroy(room_arg);
     account_free(account);
 
+    if (account->muc_service) {
+        // then we allocated the memory ourself (see above)
+        free(room);
+    }
+
     return TRUE;
 }