aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-01-03 09:14:50 -0800
committerGarrett D'Amore <garrett@damore.org>2018-01-03 09:14:50 -0800
commita14e5369efe66f4955e1378087d889b59448cde1 (patch)
tree6bff598a90241b10b05e9ad99db06390d22546f1 /src/supplemental
parent56da51979758dea536ee63febcd0e7d437a4c881 (diff)
downloadnng-a14e5369efe66f4955e1378087d889b59448cde1.tar.gz
nng-a14e5369efe66f4955e1378087d889b59448cde1.tar.bz2
nng-a14e5369efe66f4955e1378087d889b59448cde1.zip
Do not free the request structure on error -- the http server needs it.
Diffstat (limited to 'src/supplemental')
-rw-r--r--src/supplemental/websocket/websocket.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/supplemental/websocket/websocket.c b/src/supplemental/websocket/websocket.c
index bb16cf3c..d614c58d 100644
--- a/src/supplemental/websocket/websocket.c
+++ b/src/supplemental/websocket/websocket.c
@@ -1470,7 +1470,6 @@ ws_handler(nni_aio *aio)
return;
err:
- nni_http_req_fini(req);
if ((rv = nni_http_res_init_error(&res, status)) != 0) {
nni_aio_finish_error(aio, rv);
} else {