summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-message.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-message.c b/src/plugins/irc/irc-message.c
index 0ba89486c..c4314e0f6 100644
--- a/src/plugins/irc/irc-message.c
+++ b/src/plugins/irc/irc-message.c
@@ -194,6 +194,17 @@ irc_message_parse_to_hashtable (const char *message)
weechat_hashtable_set (hashtable, "channel", (channel) ? channel : empty_str);
weechat_hashtable_set (hashtable, "arguments", (arguments) ? arguments : empty_str);
+ if (nick)
+ free (nick);
+ if (host)
+ free (host);
+ if (command)
+ free (command);
+ if (channel)
+ free (channel);
+ if (arguments)
+ free (arguments);
+
return hashtable;
}