summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-08-09 17:15:22 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-08-09 17:15:22 +0200
commita6aee98cb1869d9c6959188e4c0dcac4b7276725 (patch)
treed340f171a8eb9bc583923b8278b3862e813e406c /src
parent4c871760d2cd1b08196cbad456e063555460d9e5 (diff)
downloadweechat-a6aee98cb1869d9c6959188e4c0dcac4b7276725.zip
relay: fix memory leak when receiving commands from client (weechat protocol)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/relay/weechat/relay-weechat-protocol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/relay/weechat/relay-weechat-protocol.c b/src/plugins/relay/weechat/relay-weechat-protocol.c
index dc553cd8d..3ea85bf03 100644
--- a/src/plugins/relay/weechat/relay-weechat-protocol.c
+++ b/src/plugins/relay/weechat/relay-weechat-protocol.c
@@ -1394,6 +1394,7 @@ relay_weechat_protocol_recv (struct t_relay_client *client, const char *data)
if (id)
free (id);
+ free (command);
if (argv)
weechat_string_free_split (argv);
if (argv_eol)