From a9c69670fa246fefb2095aac1b8cf9581e2cd67c Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 9 Feb 2015 22:03:17 +0000 Subject: [PATCH] Free filtered lists for who command --- src/command/commands.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/command/commands.c b/src/command/commands.c index 2059c982..6eca1bd1 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -1069,6 +1069,7 @@ _who_roster(gchar **args, struct cmd_help_t help) cons_show_contacts(filtered); } } + g_slist_free(filtered); // unavailable } else if (strcmp("unavailable", presence) == 0) { @@ -1097,6 +1098,7 @@ _who_roster(gchar **args, struct cmd_help_t help) cons_show_contacts(filtered); } } + g_slist_free(filtered); // online, available resources } else if (strcmp("online", presence) == 0) { @@ -1125,6 +1127,7 @@ _who_roster(gchar **args, struct cmd_help_t help) cons_show_contacts(filtered); } } + g_slist_free(filtered); // offline, no available resources } else if (strcmp("offline", presence) == 0) { @@ -1153,6 +1156,7 @@ _who_roster(gchar **args, struct cmd_help_t help) cons_show_contacts(filtered); } } + g_slist_free(filtered); // show specific status } else { @@ -1181,6 +1185,7 @@ _who_roster(gchar **args, struct cmd_help_t help) cons_show_contacts(filtered); } } + g_slist_free(filtered); } g_slist_free(list);