From 667262f214441c66bcaeeae3b1b2ecbecf4aaf64 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 23 Dec 2016 12:15:40 -0800 Subject: Fix for incorrect nni_usleep(), found with newly created platform tests. --- src/platform/posix/posix_synch.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/platform/posix/posix_synch.c') 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; -- cgit v1.2.3-70-g09d2