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:11:02 +0200 |
commit | 6cb91b331fea2e0c78eafb25ea636670e7a54d1a (patch) | |
tree | f290c72266bd25f42ce5f80be52195fc8badf7a0 | |
parent | 51caffb5c187bb2c633e0da9f5928fced4fae7ed (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; } |