Fix leaks in tests
[folly.git] / folly / io / async / test / AsyncSSLSocketTest.h
index a08fe6b949340568f3df5cc72259a27334b10b49..ac5da8ccfc2721f9044669e829f41e5d00011fdf 100644 (file)
@@ -557,7 +557,7 @@ class TestSSLServer {
   EventBase evb_;
   std::shared_ptr<folly::SSLContext> ctx_;
   SSLServerAcceptCallbackBase *acb_;
-  folly::AsyncServerSocket *socket_;
+  std::shared_ptr<folly::AsyncServerSocket> socket_;
   folly::SocketAddress address_;
   pthread_t thread_;