#include <folly/ssl/detail/OpenSSLThreading.h>
+#include <memory>
#include <mutex>
#include <folly/Portability.h>
void installThreadingLocks() {
// static locking
- locks().reset(new SSLLock[size_t(CRYPTO_num_locks())]);
+ locks() = std::make_unique<SSLLock[]>(size_t(CRYPTO_num_locks()));
for (auto it : lockTypes()) {
locks()[size_t(it.first)].lockType = it.second;
}