Explorar el Código

TLS: Fix memory leak with OpenSSL

Based on the patch submitted by midnight2k
Tatsuhiro Tsujikawa hace 10 años
padre
commit
d755df2505
Se han modificado 1 ficheros con 1 adiciones y 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_);
   }
 }