mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
client avoid double free on error path
via dj1yfk on trac #99 Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
2121e8a7fc
commit
1dce6c06ea
1 changed files with 1 additions and 1 deletions
|
@ -794,7 +794,7 @@ bail2:
|
|||
|
||||
/* free up his parsing allocations */
|
||||
|
||||
lws_free(wsi->u.hdr.ah);
|
||||
lws_free2(wsi->u.hdr.ah);
|
||||
|
||||
libwebsocket_close_and_free_session(context, wsi, close_reason);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue