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

relay: fix initialization of irc_argv_eol, free variable after use (issue #1040)

This commit is contained in:
Sébastien Helleu
2017-07-23 14:21:46 +02:00
parent a58d3fac4c
commit 70839c732e
+3
View File
@@ -1302,6 +1302,7 @@ relay_irc_recv (struct t_relay_client *client, const char *data)
hash_parsed = NULL;
irc_argv = NULL;
irc_argv_eol = NULL;
irc_argc = 0;
/* display debug message */
@@ -1739,6 +1740,8 @@ end:
weechat_hashtable_free (hash_parsed);
if (irc_argv)
weechat_string_free_split (irc_argv);
if (irc_argv_eol)
weechat_string_free_split (irc_argv_eol);
}
/*