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:10:56 +0200 |
commit | 656b171d05f69ca725d8b6fab028baa8822e12ff (patch) | |
tree | 91144bb9a5d2d2acc39691a704932904c87e5210 | |
parent | c6a784afa28526a84a2cc20b18a20f26ea480f0f (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)
(cherry picked from commit 993c2407d04956ffdf9b32cf0a7e4938ace816dc)
-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; } |