mirror of https://github.com/openssl/openssl
list_provider_info(): Fix leak on error
Fixes #24110 Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Paul Dale <ppzgs1@gmail.com> (Merged from https://github.com/openssl/openssl/pull/24117)
This commit is contained in:
parent
d4188f2486
commit
993c2407d0
|
@ -1230,6 +1230,7 @@ static void list_provider_info(void)
|
|||
}
|
||||
|
||||
if (OSSL_PROVIDER_do_all(NULL, &collect_providers, providers) != 1) {
|
||||
sk_OSSL_PROVIDER_free(providers);
|
||||
BIO_printf(bio_err, "ERROR: Memory allocation\n");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue