mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Merge pull request #608 from tijko/master
Follow g_strsplit with call to g_strfreev
This commit is contained in:
parent
3a3b34fc63
commit
929c947747
@ -743,6 +743,7 @@ static char *get_nicks(IRC_SERVER_REC *server, WI_ITEM_REC *item,
|
|||||||
g_hash_table_lookup(optlist, "yes") == NULL) {
|
g_hash_table_lookup(optlist, "yes") == NULL) {
|
||||||
/* too many matches */
|
/* too many matches */
|
||||||
g_string_free(str, TRUE);
|
g_string_free(str, TRUE);
|
||||||
|
g_strfreev(matches);
|
||||||
cmd_params_free(free_arg);
|
cmd_params_free(free_arg);
|
||||||
|
|
||||||
signal_emit("error command", 1,
|
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);
|
if (str->len > 0) g_string_truncate(str, str->len-1);
|
||||||
ret = str->str;
|
ret = str->str;
|
||||||
g_string_free(str, FALSE);
|
g_string_free(str, FALSE);
|
||||||
|
g_strfreev(matches);
|
||||||
cmd_params_free(free_arg);
|
cmd_params_free(free_arg);
|
||||||
|
|
||||||
*ret_channel = channel;
|
*ret_channel = channel;
|
||||||
|
Loading…
Reference in New Issue
Block a user