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:
parent
43bb340566
commit
37f2297b2a
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue