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

client: stop stash leak on error path

https://github.com/warmcat/libwebsockets/issues/1187
This commit is contained in:
Andy Green 2018-02-26 08:35:50 +08:00
parent a0581a926b
commit e02a999863

View file

@ -423,6 +423,7 @@ oom4:
goto failed1;
lws_remove_from_timeout_list(wsi);
lws_header_table_detach(wsi, 0);
lws_client_stash_destroy(wsi);
lws_free(wsi);
return NULL;