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

fix memleak when role h1 failed to upgrade to websocket

This commit is contained in:
Alfred Sawaya 2018-06-02 05:57:40 +08:00 committed by Andy Green
parent d2b47b458b
commit 3f7ffeddac

View file

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