about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/command/cmd_funcs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 1ee6f202..9a3d2c93 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -4593,6 +4593,8 @@ cmd_rooms(ProfWin *window, const char *const command, gchar **args)
         } else {
             cons_bad_cmd_usage(command);
             cons_show("");
+            g_free(service);
+            g_free(filter);
             return TRUE;
         }
     }
@@ -4620,6 +4622,7 @@ cmd_rooms(ProfWin *window, const char *const command, gchar **args)
     iq_room_list_request(service, filter);
 
     g_free(service);
+    g_free(filter);
 
     return TRUE;
 }