]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/TlsLib/TlsInit.c
CryptoPkg/TlsLib: Remove the redundant free of BIO objects
[mirror_edk2.git] / CryptoPkg / Library / TlsLib / TlsInit.c
index e2c9744a44b961fbcfc5efbcf60645fb5c466630..e524647103f96d0f47cb11d9485bc54b0109d3e3 100644 (file)
@@ -130,20 +130,12 @@ TlsFree (
   }\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