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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user