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>
}\r
\r
//\r
- // Free the internal TLS and BIO objects.\r
+ // Free the internal TLS and related BIO objects.\r
//\r
if (TlsConn->Ssl != NULL) {\r
SSL_free (TlsConn->Ssl);\r
}\r
\r
- if (TlsConn->InBio != NULL) {\r
- BIO_free (TlsConn->InBio);\r
- }\r
-\r
- if (TlsConn->OutBio != NULL) {\r
- BIO_free (TlsConn->OutBio);\r
- }\r
-\r
OPENSSL_free (Tls);\r
}\r
\r