client: stop stash leak on error path
https://github.com/warmcat/libwebsockets/issues/1187
This commit is contained in:
parent
a0581a926b
commit
e02a999863
1 changed files with 1 additions and 0 deletions
|
@ -423,6 +423,7 @@ oom4:
|
||||||
goto failed1;
|
goto failed1;
|
||||||
lws_remove_from_timeout_list(wsi);
|
lws_remove_from_timeout_list(wsi);
|
||||||
lws_header_table_detach(wsi, 0);
|
lws_header_table_detach(wsi, 0);
|
||||||
|
lws_client_stash_destroy(wsi);
|
||||||
lws_free(wsi);
|
lws_free(wsi);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue