1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

irc: free allocated memory in case of early exit from the function

This commit is contained in:
Sébastien Helleu
2016-01-17 08:21:45 +01:00
parent b0725c2b9b
commit 68b70fb185
+3
View File
@@ -1398,7 +1398,10 @@ irc_command_ctcp (void *data, struct t_gui_buffer *buffer, int argc,
ctcp_type = strdup (argv[arg_type]);
if (!ctcp_type)
{
weechat_string_free_split (targets);
WEECHAT_COMMAND_ERROR;
}
weechat_string_toupper (ctcp_type);