summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorLemonBoy <LemonBoy@users.noreply.github.com>2017-01-08 21:55:39 +0100
committerGitHub <noreply@github.com>2017-01-08 21:55:39 +0100
commit38ea52d09fc3c55cbbc1840a926b8c85ac1d3ae1 (patch)
tree94a3606392367294e40539e069d08bd6642bbf5b /src/irc
parent7c09b72a26884bcd9711f39e2730ab09e658eec1 (diff)
parent5917bc6f75dd87806807d3d526826b64e8271a5b (diff)
downloadirssi-38ea52d09fc3c55cbbc1840a926b8c85ac1d3ae1.zip
Merge pull request #608 from tijko/master
Follow g_strsplit with call to g_strfreev
Diffstat (limited to 'src/irc')
-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;