mirror of https://github.com/acidanthera/audk.git
CryptoPkg/TlsLib: Remove the redundant free of BIO objects
TLS BIO objects (InBio/OutBio) will be freed by SSL_free() function. So, the following free operation (BIO_free) in TlsFree is redundant. It can be removed directly. Cc: Ye Ting <ting.ye@intel.com> Cc: Long Qin <qin.long@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Long Qin <qin.long@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
This commit is contained in:
parent
9ef28ed312
commit
6aac2db4a1
|
@ -130,20 +130,12 @@ TlsFree (
|
|||
}
|
||||
|
||||
//
|
||||
// Free the internal TLS and BIO objects.
|
||||
// Free the internal TLS and related BIO objects.
|
||||
//
|
||||
if (TlsConn->Ssl != NULL) {
|
||||
SSL_free (TlsConn->Ssl);
|
||||
}
|
||||
|
||||
if (TlsConn->InBio != NULL) {
|
||||
BIO_free (TlsConn->InBio);
|
||||
}
|
||||
|
||||
if (TlsConn->OutBio != NULL) {
|
||||
BIO_free (TlsConn->OutBio);
|
||||
}
|
||||
|
||||
OPENSSL_free (Tls);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue