aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-01-03 13:04:44 -0800
committerGarrett D'Amore <garrett@damore.org>2018-01-03 13:04:44 -0800
commit2ea7ae1ae5755ab72833fdea0dcf8e13e4d91d0d (patch)
tree0c9043030419dbe6ac54f709d7658330f2e1d529 /src/core
parent303f84fbbfc4ee04b9f62e12bb2c1106834a2371 (diff)
downloadnng-2ea7ae1ae5755ab72833fdea0dcf8e13e4d91d0d.tar.gz
nng-2ea7ae1ae5755ab72833fdea0dcf8e13e4d91d0d.tar.bz2
nng-2ea7ae1ae5755ab72833fdea0dcf8e13e4d91d0d.zip
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.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/aio.c1
1 files changed, 1 insertions, 0 deletions
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;