diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-24 23:28:37 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 20:59:24 +0200 |
commit | 2bbf289635aaa44fe05e2da0f48583c099080a34 (patch) | |
tree | 72deb215d0fb87bc860d1a104bc2e0a145309efa /src/plugins/irc/irc-info.c | |
parent | f3a9bfe55e7f7a574681a695d3ba99455feb08ed (diff) | |
download | weechat-2bbf289635aaa44fe05e2da0f48583c099080a34.zip |
irc: remove check of NULL pointers before calling free() (issue #865)
Diffstat (limited to 'src/plugins/irc/irc-info.c')
-rw-r--r-- | src/plugins/irc/irc-info.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/irc/irc-info.c b/src/plugins/irc/irc-info.c index cada8c375..abdee08d1 100644 --- a/src/plugins/irc/irc-info.c +++ b/src/plugins/irc/irc-info.c @@ -300,12 +300,9 @@ irc_info_info_irc_buffer_cb (const void *pointer, void *data, if (server && ptr_server && channel) ptr_channel = irc_channel_search (ptr_server, channel); - if (server) - free (server); - if (channel) - free (channel); - if (host) - free (host); + free (server); + free (channel); + free (host); if (ptr_channel) { |