Skip to content

Commit

Permalink
list_provider_info(): Fix leak on error
Browse files Browse the repository at this point in the history
Fixes #24110

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from #24117)

(cherry picked from commit 993c240)
  • Loading branch information
t8m committed Apr 15, 2024
1 parent a6d9343 commit acd1d26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit acd1d26

Please sign in to comment.