From 2ea7ae1ae5755ab72833fdea0dcf8e13e4d91d0d Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 3 Jan 2018 13:04:44 -0800 Subject: Fix leaks on send. I'm pretty sure I need to go back and review the handling of send messages for websocket too. We still have a receive leak in websocket and leaks caused by the new URL parsing code which needs to be refactored. --- src/core/aio.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core') diff --git a/src/core/aio.c b/src/core/aio.c index 6ce5641d..350bf52a 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -308,6 +308,7 @@ nni_aio_finish_impl( NNI_ASSERT(aio->a_pend == 0); // provider only calls us *once* nni_list_node_remove(&aio->a_expire_node); + aio->a_pend = 1; aio->a_result = result; aio->a_count = count; -- cgit v1.2.3-70-g09d2