summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-07-23 14:21:46 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-07-23 14:22:12 +0200
commit70839c732eece114db343f6ac4999ef5537cceea (patch)
treea68ddd8cd1432f39d40b7ef1b3c83c5c7320667c /src/plugins
parenta58d3fac4cb5475aea804bd7894979508f2cbbba (diff)
downloadweechat-70839c732eece114db343f6ac4999ef5537cceea.zip
relay: fix initialization of irc_argv_eol, free variable after use (issue #1040)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/relay/irc/relay-irc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/relay/irc/relay-irc.c b/src/plugins/relay/irc/relay-irc.c
index 78e02e751..1a93b1162 100644
--- a/src/plugins/relay/irc/relay-irc.c
+++ b/src/plugins/relay/irc/relay-irc.c
@@ -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);
}
/*