From a73bdc24e14760413a65d478d7c88356b4b95bb5 Mon Sep 17 00:00:00 2001 From: xkernel Date: Thu, 20 Oct 2022 01:11:16 +0800 Subject: [PATCH] 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 Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/19446) --- apps/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openssl.c b/apps/openssl.c index 3497d51f4d..f5ee1476ff 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -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); }