diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-09-28 16:21:26 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-09-28 16:21:26 -0700 |
| commit | 82d17f6365a95a500c32ae3a4ad40ff6fb609f3e (patch) | |
| tree | 652c6c5cd82f4b7d078e2cf59affd41d12eeab1d /src/core | |
| parent | 1a5118d27a06c6e6596ee29a4756fd01a637007e (diff) | |
| download | nng-82d17f6365a95a500c32ae3a4ad40ff6fb609f3e.tar.gz nng-82d17f6365a95a500c32ae3a4ad40ff6fb609f3e.tar.bz2 nng-82d17f6365a95a500c32ae3a4ad40ff6fb609f3e.zip | |
fixes #91 pair1 segfault seen
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/pipe.c | 3 |
1 files changed, 1 insertions, 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); } |
