diff --git a/lib/roles/h1/ops-h1.c b/lib/roles/h1/ops-h1.c index 49dfe4b47..8e7294799 100644 --- a/lib/roles/h1/ops-h1.c +++ b/lib/roles/h1/ops-h1.c @@ -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; }