aboutsummaryrefslogtreecommitdiff
path: root/src/core/pipe.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-16 14:35:26 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-16 14:35:26 -0700
commit80f509d30406ed58f3df113e38bc3e59f30a326e (patch)
tree5ea89d63c6d922994e0a6096718b8f4d4aa64879 /src/core/pipe.c
parent800c9b609ded23caa5050121deb5c97ccbaedf63 (diff)
downloadnng-80f509d30406ed58f3df113e38bc3e59f30a326e.tar.gz
nng-80f509d30406ed58f3df113e38bc3e59f30a326e.tar.bz2
nng-80f509d30406ed58f3df113e38bc3e59f30a326e.zip
Clean up pipes on fini. EP close sync with pipes.
Diffstat (limited to 'src/core/pipe.c')
-rw-r--r--src/core/pipe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/pipe.c b/src/core/pipe.c
index 7b285575..f24ea9c3 100644
--- a/src/core/pipe.c
+++ b/src/core/pipe.c
@@ -63,6 +63,7 @@ nni_pipe_destroy(nni_pipe *p)
nni_idhash_remove(nni_pipes, p->p_id);
}
nni_mtx_fini(&p->p_mtx);
+ NNI_FREE_STRUCT(p);
}
// nni_pipe_id returns the 32-bit pipe id, which can be used in backtraces.