summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Konick <konick781@gmail.com>2017-01-06 21:58:00 -0800
committerTim Konick <konick781@gmail.com>2017-01-07 14:31:35 -0800
commit5917bc6f75dd87806807d3d526826b64e8271a5b (patch)
tree22f70b28039a67e301867af28e5f503b38e30d1a
parent808a11a15078356aad767364ed2e07a9001cb6ec (diff)
downloadirssi-5917bc6f75dd87806807d3d526826b64e8271a5b.zip
Follow g_strsplit with call to g_strfreev
-rw-r--r--src/irc/core/modes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c
index 207461cc..cc3d0faf 100644
--- a/src/irc/core/modes.c
+++ b/src/irc/core/modes.c
@@ -743,6 +743,7 @@ static char *get_nicks(IRC_SERVER_REC *server, WI_ITEM_REC *item,
g_hash_table_lookup(optlist, "yes") == NULL) {
/* too many matches */
g_string_free(str, TRUE);
+ g_strfreev(matches);
cmd_params_free(free_arg);
signal_emit("error command", 1,
@@ -756,7 +757,7 @@ static char *get_nicks(IRC_SERVER_REC *server, WI_ITEM_REC *item,
if (str->len > 0) g_string_truncate(str, str->len-1);
ret = str->str;
g_string_free(str, FALSE);
-
+ g_strfreev(matches);
cmd_params_free(free_arg);
*ret_channel = channel;