From e02a999863750cf71335fd9a2cb303188178716c Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 26 Feb 2018 08:35:50 +0800 Subject: [PATCH] client: stop stash leak on error path https://github.com/warmcat/libwebsockets/issues/1187 --- lib/client/client-handshake.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/client/client-handshake.c b/lib/client/client-handshake.c index 4ee88561d..799311459 100644 --- a/lib/client/client-handshake.c +++ b/lib/client/client-handshake.c @@ -423,6 +423,7 @@ oom4: goto failed1; lws_remove_from_timeout_list(wsi); lws_header_table_detach(wsi, 0); + lws_client_stash_destroy(wsi); lws_free(wsi); return NULL;