1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

relay: fix memory leak during handshake on websocket

This commit is contained in:
Sébastien Helleu
2014-08-09 17:41:16 +02:00
parent 7a76a959ec
commit 795b9c9da9
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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"