]> 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:39:43 +0000 (15:39 +0200)
commit606fdff98a2eaafad257fe66193921b9222bdeba
tree97bb6ca363e0549bb65caf5885e8b3e8eae1292a
parent2bec15e92ea2b57e5e8c474f524989177c2cdd27
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)

(cherry picked from commit 55662b674543c9385600bc9b7c46277ef69b4dba)
test/provider_test.c