Since it is free'd using this call in tls_set1_bio().
Complements:
435feadaf4f9 "Fix record layer leak when swapping chained transport BIO"
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.foundation>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
MergeDate: Sat May 2 18:10:42 2026
(Merged from https://github.com/openssl/openssl/pull/31011)
static void tls_int_free(OSSL_RECORD_LAYER *rl)
{
BIO_free(rl->prev);
- BIO_free(rl->bio);
+ BIO_free_all(rl->bio);
BIO_free(rl->next);
ossl_tls_buffer_release(&rl->rbuf);