Loading crypto/threads_pthread.c +3 −1 Original line number Diff line number Diff line Loading @@ -58,8 +58,10 @@ CRYPTO_RWLOCK *CRYPTO_THREAD_lock_new(void) if (lock == NULL) return NULL; if (pthread_rwlock_init(lock, NULL) != 0) if (pthread_rwlock_init(lock, NULL) != 0) { OPENSSL_free(lock); return NULL; } return lock; } Loading crypto/threads_win.c +3 −1 Original line number Diff line number Diff line Loading @@ -59,8 +59,10 @@ CRYPTO_RWLOCK *CRYPTO_THREAD_lock_new(void) return NULL; /* 0x400 is the spin count value suggested in the documentation */ if (!InitializeCriticalSectionAndSpinCount(lock, 0x400)) if (!InitializeCriticalSectionAndSpinCount(lock, 0x400)) { OPENSSL_free(lock); return NULL; } return lock; } Loading Loading
crypto/threads_pthread.c +3 −1 Original line number Diff line number Diff line Loading @@ -58,8 +58,10 @@ CRYPTO_RWLOCK *CRYPTO_THREAD_lock_new(void) if (lock == NULL) return NULL; if (pthread_rwlock_init(lock, NULL) != 0) if (pthread_rwlock_init(lock, NULL) != 0) { OPENSSL_free(lock); return NULL; } return lock; } Loading
crypto/threads_win.c +3 −1 Original line number Diff line number Diff line Loading @@ -59,8 +59,10 @@ CRYPTO_RWLOCK *CRYPTO_THREAD_lock_new(void) return NULL; /* 0x400 is the spin count value suggested in the documentation */ if (!InitializeCriticalSectionAndSpinCount(lock, 0x400)) if (!InitializeCriticalSectionAndSpinCount(lock, 0x400)) { OPENSSL_free(lock); return NULL; } return lock; } Loading