From 82d17f6365a95a500c32ae3a4ad40ff6fb609f3e Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 28 Sep 2017 16:21:26 -0700 Subject: fixes #91 pair1 segfault seen --- src/core/pipe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/pipe.c b/src/core/pipe.c index 7351997a..77ceaa4f 100644 --- a/src/core/pipe.c +++ b/src/core/pipe.c @@ -121,8 +121,6 @@ nni_pipe_destroy(nni_pipe *p) // We have exclusive access at this point, so we can check if // we are still on any lists. - nni_aio_fini(p->p_start_aio); - if (nni_list_node_active(&p->p_ep_node)) { nni_ep_pipe_remove(p->p_ep, p); } @@ -133,6 +131,7 @@ nni_pipe_destroy(nni_pipe *p) if (p->p_tran_data != NULL) { p->p_tran_ops.p_fini(p->p_tran_data); } + nni_aio_fini(p->p_start_aio); nni_mtx_fini(&p->p_mtx); NNI_FREE_STRUCT(p); } -- cgit v1.2.3-70-g09d2