aboutsummaryrefslogtreecommitdiff
path: root/src/core/pipe.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-19 13:42:57 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-19 13:42:57 -0700
commitc726f93041b8dcd085c88144f2c13a2ac6fe58ad (patch)
tree1cb8fe6854396d49869ddb37e3837051b3585898 /src/core/pipe.h
parent8dc1cb91df32d6908843498d03dc4b05942bca04 (diff)
downloadnng-c726f93041b8dcd085c88144f2c13a2ac6fe58ad.tar.gz
nng-c726f93041b8dcd085c88144f2c13a2ac6fe58ad.tar.bz2
nng-c726f93041b8dcd085c88144f2c13a2ac6fe58ad.zip
fixes #27 Double free found in stress testing
Diffstat (limited to 'src/core/pipe.h')
-rw-r--r--src/core/pipe.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/pipe.h b/src/core/pipe.h
index 90e9213e..e2c76d4d 100644
--- a/src/core/pipe.h
+++ b/src/core/pipe.h
@@ -31,7 +31,9 @@ struct nni_pipe {
nni_ep * p_ep;
int p_reap;
int p_stop;
+ int p_refcnt;
nni_mtx p_mtx;
+ nni_cv p_cv;
nni_taskq_ent p_reap_tqe;
nni_aio p_start_aio;
};