diff --git a/crypto/threads_pthread.c b/crypto/threads_pthread.c index 4ba47966a6c134eaf2b285c73d346e0a6567cfed..5b10f438b9cb7ae98607d6cb2513bcb9faf755c1 100644 --- a/crypto/threads_pthread.c +++ b/crypto/threads_pthread.c @@ -35,13 +35,13 @@ CRYPTO_RWLOCK *CRYPTO_THREAD_lock_new(void) pthread_mutexattr_init(&attr); pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); - + if (pthread_mutex_init(lock, &attr) != 0) { pthread_mutexattr_destroy(&attr); OPENSSL_free(lock); return NULL; } - + pthread_mutexattr_destroy(&attr); # endif