Ver Fonte

TLS: Fix memory leak with OpenSSL

Based on the patch submitted by midnight2k
Tatsuhiro Tsujikawa há 10 anos atrás
pai
commit
d755df2505
1 ficheiros alterados com 1 adições e 1 exclusões
  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_);
   }
 }