]> 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:38:03 +0000 (15:38 +0200)
commita5733b2518aad41a42df73376a024b9f866a569f
tree181f88a6f62bc84eb8d0ce0a3f92ebb1a28b2ec2
parent0c0c6954bf4fa7b56e21e1393c9e5e5d55c1b2d6
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)

(cherry picked from commit 6e8a1031ed11af9645769f9e019db9f032a220b8)
test/provider_fallback_test.c