
If the function fails, the 'underlying' BIO was leaking as tls_free did not clean it up if 'tls->bio' was not successfully allocated.
If the function fails, the 'underlying' BIO was leaking as tls_free did not clean it up if 'tls->bio' was not successfully allocated.