From 795b9c9da93a36db72c3abacd8d1b4e4486b1b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 9 Aug 2014 17:41:16 +0200 Subject: relay: fix memory leak during handshake on websocket --- src/plugins/relay/relay-websocket.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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" -- cgit v1.2.3