diff options
author | Tomas Mraz <tomas@openssl.org> | 2024-04-11 17:49:53 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-04-15 09:09:32 +0200 |
commit | 993c2407d04956ffdf9b32cf0a7e4938ace816dc (patch) | |
tree | dbe1900166134902bfade7bde1c83430c83588ea | |
parent | d4188f24866f88b4269110ce86f9545edd44c846 (diff) |
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)
-rw-r--r-- | apps/list.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/list.c b/apps/list.c index adcf6803b4..40e8f4d06d 100644 --- a/apps/list.c +++ b/apps/list.c @@ -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; } |