X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=CryptoPkg%2FLibrary%2FTlsLib%2FTlsInit.c;fp=CryptoPkg%2FLibrary%2FTlsLib%2FTlsInit.c;h=e524647103f96d0f47cb11d9485bc54b0109d3e3;hp=e2c9744a44b961fbcfc5efbcf60645fb5c466630;hb=6aac2db4a11432b11ba92a0d1652d6ec3d81f353;hpb=9ef28ed3126f3890174ee966c6d48246b80b8ab8 diff --git a/CryptoPkg/Library/TlsLib/TlsInit.c b/CryptoPkg/Library/TlsLib/TlsInit.c index e2c9744a44..e524647103 100644 --- a/CryptoPkg/Library/TlsLib/TlsInit.c +++ b/CryptoPkg/Library/TlsLib/TlsInit.c @@ -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); }