From: xkernel Date: Wed, 19 Oct 2022 17:11:16 +0000 (+0800) Subject: Replace BIO_free(bio_err) with BIO_free_all(bio_err) X-Git-Tag: openssl-3.2.0-alpha1~1855 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a73bdc24e14760413a65d478d7c88356b4b95bb5;p=thirdparty%2Fopenssl.git 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) --- diff --git a/apps/openssl.c b/apps/openssl.c index 3497d51f4df..f5ee1476ffd 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); }