소스 검색

TLS: Fix memory leak with OpenSSL

Based on the patch submitted by midnight2k
Tatsuhiro Tsujikawa 10 년 전
부모
커밋
d755df2505
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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_);
   }
 }