summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-info.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-24 23:28:37 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-25 20:59:24 +0200
commit2bbf289635aaa44fe05e2da0f48583c099080a34 (patch)
tree72deb215d0fb87bc860d1a104bc2e0a145309efa /src/plugins/irc/irc-info.c
parentf3a9bfe55e7f7a574681a695d3ba99455feb08ed (diff)
downloadweechat-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.c9
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)
{