mirror of https://github.com/aria2/aria2
TLS: Fix memory leak with OpenSSL
Based on the patch submitted by midnight2kpull/319/head
parent
962b8ccb05
commit
d755df2505
|
@ -58,7 +58,7 @@ OpenSSLTLSSession::OpenSSLTLSSession(OpenSSLTLSContext* tlsContext)
|
||||||
OpenSSLTLSSession::~OpenSSLTLSSession()
|
OpenSSLTLSSession::~OpenSSLTLSSession()
|
||||||
{
|
{
|
||||||
if(ssl_) {
|
if(ssl_) {
|
||||||
SSL_shutdown(ssl_);
|
SSL_free(ssl_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue