mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 13:26:38 +02:00
relay: fix memory leak during handshake on websocket
This commit is contained in:
@@ -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 during handshake on websocket
|
||||
* 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
|
||||
|
||||
@@ -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