1
0
Fork 0
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:
Andy Green 2015-02-01 07:19:46 +08:00
parent 2121e8a7fc
commit 1dce6c06ea

View file

@ -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);