aboutsummaryrefslogtreecommitdiff
path: root/src/platform/posix/posix_synch.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-23 12:15:40 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-23 12:15:40 -0800
commit667262f214441c66bcaeeae3b1b2ecbecf4aaf64 (patch)
tree9912966cf831c39f45a44eb0fd88fa1b92e35936 /src/platform/posix/posix_synch.c
parenta12baf41fb17ef51a8b1d0c82e31113454c5beae (diff)
downloadnng-667262f214441c66bcaeeae3b1b2ecbecf4aaf64.tar.gz
nng-667262f214441c66bcaeeae3b1b2ecbecf4aaf64.tar.bz2
nng-667262f214441c66bcaeeae3b1b2ecbecf4aaf64.zip
Fix for incorrect nni_usleep(), found with newly created platform tests.
Diffstat (limited to 'src/platform/posix/posix_synch.c')
-rw-r--r--src/platform/posix/posix_synch.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/platform/posix/posix_synch.c b/src/platform/posix/posix_synch.c
index 8b5d3cc8..2fb92915 100644
--- a/src/platform/posix/posix_synch.c
+++ b/src/platform/posix/posix_synch.c
@@ -75,7 +75,6 @@ nni_cond_init(nni_cond *c, nni_mutex *m)
{
if (pthread_cond_init(&c->cv, &nni_cvattr) != 0) {
// In theory could be EAGAIN, but handle like ENOMEM
- nni_free(c, sizeof (*c));
return (NNG_ENOMEM);
}
c->mx = &m->mx;