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