TLS: Fix memory leak with OpenSSL

Based on the patch submitted by midnight2k
pull/319/head
Tatsuhiro Tsujikawa 2014-12-26 18:04:50 +09:00
parent 962b8ccb05
commit d755df2505
1 changed files with 1 additions and 1 deletions

View File

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