aboutsummaryrefslogtreecommitdiff
path: root/sbin/hastd/synch.h
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/hastd/synch.h')
-rw-r--r--sbin/hastd/synch.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/hastd/synch.h b/sbin/hastd/synch.h
index 1dda49d7eb71..cf388d7d0cd6 100644
--- a/sbin/hastd/synch.h
+++ b/sbin/hastd/synch.h
@@ -140,6 +140,8 @@ cv_init(pthread_cond_t *cv)
assert(error == 0);
error = pthread_cond_init(cv, &attr);
assert(error == 0);
+ error = pthread_condattr_destroy(&attr);
+ assert(error == 0);
}
static __inline void
cv_wait(pthread_cond_t *cv, pthread_mutex_t *lock)