]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/provider_test.c: Add OSSL_PROVIDER_unload() to avoid memory leak
authorJiasheng Jiang <jiashengjiangcool@outlook.com>
Tue, 6 Aug 2024 19:18:34 +0000 (19:18 +0000)
committerTomas Mraz <tomas@openssl.org>
Wed, 21 Aug 2024 13:38:58 +0000 (15:38 +0200)
commit55662b674543c9385600bc9b7c46277ef69b4dba
tree2f592909d9b25897adca4165e39777a4887152b8
parent6e8a1031ed11af9645769f9e019db9f032a220b8
test/provider_test.c: Add OSSL_PROVIDER_unload() to avoid memory leak

Add OSSL_PROVIDER_unload() when OSSL_PROVIDER_add_builtin() fails to avoid memory leak.

Fixes: 5442611dff ("Add a test for OSSL_LIB_CTX_new_child()")
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@outlook.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25109)
test/provider_test.c