1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

irc: fix memory leak when joining channels with keys

This commit is contained in:
Sébastien Helleu
2023-10-07 20:33:42 +02:00
parent feb5ee8886
commit bea9d5a2bf
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -58,6 +58,7 @@ Bug fixes::
* fset: remove extra spaces between min and max values when second format is used
* fset: fix mouse actions when second format is used
* fset: apply option fset.color.help_description (issue #1988)
* irc: fix memory leak when joining channels with keys
* irc: fix unexpected message sent to server when part of the second line of an IRC command (issue #1992)
* irc: fix display of country code in message 344 received as whois geo info (issue #1736)
* irc: add missing "account-tag" in list of supported capabilities
+5
View File
@@ -2888,11 +2888,13 @@ irc_command_join_server (struct t_irc_server *server, const char *arguments,
pos_keys++;
}
if (pos_keys[0])
{
keys = weechat_string_split (pos_keys, ",", NULL,
WEECHAT_STRING_SPLIT_STRIP_LEFT
| WEECHAT_STRING_SPLIT_STRIP_RIGHT
| WEECHAT_STRING_SPLIT_COLLAPSE_SEPS,
0, &num_keys);
}
}
else
new_args = strdup (arguments);
@@ -3000,6 +3002,9 @@ irc_command_join_server (struct t_irc_server *server, const char *arguments,
}
weechat_string_free_split (channels);
}
if (keys)
weechat_string_free_split (keys);
}
/*