diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-03-25 14:05:55 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-03-25 14:05:55 +0100 |
commit | f15ea72da3891de90e3f634202a6ca0faa00088a (patch) | |
tree | bb06329e3f2c84fb0f85dca07f43fbcfd1cfc0f3 /src/plugins/irc/irc-raw.c | |
parent | 70d110026cd9dda4fa7ce570550d7931f234120e (diff) | |
download | weechat-f15ea72da3891de90e3f634202a6ca0faa00088a.zip |
irc: check that pointers received in arguments are not NULL in "free" functions
Functions:
- irc_channel_nick_speaking_time_free
- irc_ignore_free
- irc_notify_free
- irc_raw_message_free
- irc_server_outqueue_free
Diffstat (limited to 'src/plugins/irc/irc-raw.c')
-rw-r--r-- | src/plugins/irc/irc-raw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-raw.c b/src/plugins/irc/irc-raw.c index c10456c21..62c38c924 100644 --- a/src/plugins/irc/irc-raw.c +++ b/src/plugins/irc/irc-raw.c @@ -119,6 +119,9 @@ irc_raw_message_free (struct t_irc_raw_message *raw_message) { struct t_irc_raw_message *new_raw_messages; + if (!raw_message) + return; + /* remove message from raw messages list */ if (last_irc_raw_message == raw_message) last_irc_raw_message = raw_message->prev_message; |