client: fix hdr stash leak
authorAndy Green <andy@warmcat.com>
Fri, 21 Jul 2017 12:58:51 +0000 (20:58 +0800)
committerAndy Green <andy@warmcat.com>
Fri, 21 Jul 2017 13:34:46 +0000 (21:34 +0800)
lib/client.c

index c523459..3c8986c 100755 (executable)
@@ -631,6 +631,8 @@ lws_client_interpret_server_handshake(struct lws *wsi)
        int more = 1;
        void *v;
 #endif
+       if (wsi->u.hdr.stash)
+               lws_free_set_NULL(wsi->u.hdr.stash);
 
        ah = wsi->u.hdr.ah;
        if (!wsi->do_ws) {