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

fix memleak when role h1 failed to upgrade to websocket

This commit is contained in:
Alfred Sawaya 2018-06-02 05:57:26 +08:00 committed by Andy Green
parent 43bb340566
commit 37f2297b2a

View file

@ -660,6 +660,9 @@ rops_destroy_role_h1(struct lws *wsi)
ah = ah->next;
}
#ifdef LWS_ROLE_WS
lws_free_set_NULL(wsi->ws);
#endif
return 0;
}