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:09 +0200 |
commit | acd1d266b99710e55602f947b10f749eb48f81e7 (patch) | |
tree | 9fd2ee4acbf83b9351773a08d8cea7fe71dbe622 | |
parent | a6d9343ab5531b713193bb54f4f6294e9872862c (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; } |