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:17 +0200 |
commit | 5e63050602e00640a3ff114b9cfddbc2189ff166 (patch) | |
tree | 0bcfb8f004368ae525e165c138a8d35680e5d77b | |
parent | 0f7276865c54af41e99d1cc9f38b52a72b081b27 (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 0fcbcbb083..ad5f45742c 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; } |