]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/provider_fallback_test.c: Add OSSL_PROVIDER_unload() to avoid memory leak
authorJiasheng Jiang <jiashengjiangcool@outlook.com>
Tue, 6 Aug 2024 18:42:06 +0000 (18:42 +0000)
committerTomas Mraz <tomas@openssl.org>
Wed, 21 Aug 2024 13:37:05 +0000 (15:37 +0200)
commit6e8a1031ed11af9645769f9e019db9f032a220b8
treedccb0402759c92a545c935b9d11a549f9ba3d1c6
parent60358f2c5e3a26e516ece2e075d0fd4198665412
test/provider_fallback_test.c: Add OSSL_PROVIDER_unload() to avoid memory leak

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

Fixes: f995e5bdcd ("TEST: Add provider_fallback_test, to test aspects of
fallback providers")
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/25108)
test/provider_fallback_test.c