1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

client: fix hdr stash leak

This commit is contained in:
Andy Green 2017-07-21 20:58:51 +08:00
parent 75bbb3b2c0
commit 003bd7dcee

View file

@ -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) {