summaryrefslogtreecommitdiff
path: root/src/plugins/relay/irc/relay-irc.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-03-25 14:07:46 +0100
committerSébastien Helleu <flashcode@flashtux.org>2017-03-25 14:07:46 +0100
commit9e0d103ff7c8493e1273abf490884345a9c8c10f (patch)
treef3b6ae4cd0f0c448916777540f30cb73dcc687e9 /src/plugins/relay/irc/relay-irc.c
parentd4c27aa7e2cdd6b8d550599cedc1c79ead50c673 (diff)
downloadweechat-9e0d103ff7c8493e1273abf490884345a9c8c10f.zip
relay: check that pointers received in arguments are not NULL in "free" functions
Functions: - relay_irc_free - relay_client_outqueue_free - relay_raw_message_free - relay_weechat_msg_free - relay_weechat_nicklist_item_free - relay_weechat_nicklist_free - relay_weechat_free
Diffstat (limited to 'src/plugins/relay/irc/relay-irc.c')
-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 3292002ea..3085b1acc 100644
--- a/src/plugins/relay/irc/relay-irc.c
+++ b/src/plugins/relay/irc/relay-irc.c
@@ -1859,6 +1859,9 @@ relay_irc_alloc_with_infolist (struct t_relay_client *client,
void
relay_irc_free (struct t_relay_client *client)
{
+ if (!client)
+ return;
+
if (client->protocol_data)
{
if (RELAY_IRC_DATA(client, address))