Explorar o código

TLS: Fix memory leak with OpenSSL

Based on the patch submitted by midnight2k
Tatsuhiro Tsujikawa %!s(int64=10) %!d(string=hai) anos
pai
achega
d755df2505
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/LibsslTLSSession.cc

+ 1 - 1
src/LibsslTLSSession.cc

@@ -58,7 +58,7 @@ OpenSSLTLSSession::OpenSSLTLSSession(OpenSSLTLSContext* tlsContext)
 OpenSSLTLSSession::~OpenSSLTLSSession()
 {
   if(ssl_) {
-    SSL_shutdown(ssl_);
+    SSL_free(ssl_);
   }
 }