Replace BIO_free(bio_err) with BIO_free_all(bio_err)

dup_bio_err() can return a BIO chain when 'OPENSSL_SYS_VMS' is defined.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19446)
This commit is contained in:
xkernel 2022-10-20 01:11:16 +08:00 committed by Tomas Mraz
parent 6a94c5849e
commit a73bdc24e1

View File

@ -307,7 +307,7 @@ int main(int argc, char *argv[])
BIO_free(bio_in);
BIO_free_all(bio_out);
apps_shutdown();
BIO_free(bio_err);
BIO_free_all(bio_err);
EXIT(ret);
}