Browse Source

TLS: Fix memory leak with OpenSSL

Based on the patch submitted by midnight2k
Tatsuhiro Tsujikawa 10 years ago
parent
commit
d755df2505
1 changed files with 1 additions and 1 deletions
  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_);
   }
 }