summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-message.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc/irc-message.c')
-rw-r--r--src/plugins/irc/irc-message.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/plugins/irc/irc-message.c b/src/plugins/irc/irc-message.c
index d908716be..2dc822f1f 100644
--- a/src/plugins/irc/irc-message.c
+++ b/src/plugins/irc/irc-message.c
@@ -520,8 +520,7 @@ irc_message_parse_to_hashtable (struct t_irc_server *server,
free (channel);
free (arguments);
free (text);
- if (params)
- weechat_string_free_split (params);
+ weechat_string_free_split (params);
return hashtable;
}
@@ -1282,10 +1281,8 @@ irc_message_split_join (struct t_irc_message_split_context *context,
msg_to_send + length_no_channel + 1);
}
- if (channels)
- weechat_string_free_split (channels);
- if (keys)
- weechat_string_free_split (keys);
+ weechat_string_free_split (channels);
+ weechat_string_free_split (keys);
return 1;
}
@@ -1828,10 +1825,8 @@ end:
}
free (tags);
- if (argv)
- weechat_string_free_split (argv);
- if (argv_eol)
- weechat_string_free_split (argv_eol);
+ weechat_string_free_split (argv);
+ weechat_string_free_split (argv_eol);
return split_context.hashtable;
}