提交 5d5eed44 编写于 作者: D Dmitry Kostjuchenko 提交者: Richard Levitte
上级 ec93a292
...@@ -35,13 +35,13 @@ CRYPTO_RWLOCK *CRYPTO_THREAD_lock_new(void) ...@@ -35,13 +35,13 @@ CRYPTO_RWLOCK *CRYPTO_THREAD_lock_new(void)
pthread_mutexattr_init(&attr); pthread_mutexattr_init(&attr);
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
if (pthread_mutex_init(lock, &attr) != 0) { if (pthread_mutex_init(lock, &attr) != 0) {
pthread_mutexattr_destroy(&attr); pthread_mutexattr_destroy(&attr);
OPENSSL_free(lock); OPENSSL_free(lock);
return NULL; return NULL;
} }
pthread_mutexattr_destroy(&attr); pthread_mutexattr_destroy(&attr);
# endif # endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册