From a6aee98cb1869d9c6959188e4c0dcac4b7276725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 9 Aug 2014 17:15:22 +0200 Subject: [PATCH] relay: fix memory leak when receiving commands from client (weechat protocol) --- ChangeLog.asciidoc | 1 + src/plugins/relay/weechat/relay-weechat-protocol.c | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc index 39e13ef5e..2bf2df81a 100644 --- a/ChangeLog.asciidoc +++ b/ChangeLog.asciidoc @@ -171,6 +171,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] * python: fix read of return value for callbacks returning an integer in Python 2.x (closes #125) * python: fix interpreter used after unload of a script +* relay: fix memory leak when receiving commands from client (weechat protocol) * relay: fix crash when an IRC "MODE" command is received from client without arguments * relay: fix number of bytes sent/received on 32-bit systems 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)