summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-08-09 17:41:16 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-08-09 17:41:16 +0200
commit795b9c9da93a36db72c3abacd8d1b4e4486b1b3e (patch)
tree0bb8bf66506f17348b69e717acd1351839dc5c52 /src
parent7a76a959ecf72fb1cdca51f84ed3d51698b1c600 (diff)
downloadweechat-795b9c9da93a36db72c3abacd8d1b4e4486b1b3e.zip
relay: fix memory leak during handshake on websocket
Diffstat (limited to 'src')
-rw-r--r--src/plugins/relay/relay-websocket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/relay/relay-websocket.c b/src/plugins/relay/relay-websocket.c
index 2fe8ace30..1b0e72842 100644
--- a/src/plugins/relay/relay-websocket.c
+++ b/src/plugins/relay/relay-websocket.c
@@ -215,6 +215,8 @@ relay_websocket_build_handshake (struct t_relay_client *client)
weechat_string_encode_base64 ((char *)result, length, sec_websocket_accept);
gcry_md_close (hd);
+ free (key);
+
/* build the handshake (it will be sent as-is to client) */
snprintf (handshake, sizeof (handshake),
"HTTP/1.1 101 Switching Protocols\r\n"