aboutsummaryrefslogtreecommitdiff
path: root/src/sp/transport/ws
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp/transport/ws')
-rw-r--r--src/sp/transport/ws/websocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp/transport/ws/websocket.c b/src/sp/transport/ws/websocket.c
index 69509e84..3def08d3 100644
--- a/src/sp/transport/ws/websocket.c
+++ b/src/sp/transport/ws/websocket.c
@@ -200,10 +200,10 @@ wstran_pipe_fini(void *arg)
{
ws_pipe *p = arg;
+ nng_stream_free(p->ws);
nni_aio_free(p->rxaio);
nni_aio_free(p->txaio);
- nng_stream_free(p->ws);
nni_mtx_fini(&p->mtx);
NNI_FREE_STRUCT(p);
}