summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-info.c
diff options
context:
space:
mode:
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)
{