diff options
Diffstat (limited to 'crypto/context.c')
-rw-r--r-- | crypto/context.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/context.c b/crypto/context.c index 1e0dfa8e01..bba8e4208b 100644 --- a/crypto/context.c +++ b/crypto/context.c @@ -240,6 +240,10 @@ void OSSL_LIB_CTX_free(OSSL_LIB_CTX *ctx) if (ossl_lib_ctx_is_default(ctx)) return; +#ifndef FIPS_MODULE + if (ctx->ischild) + ossl_provider_deinit_child(ctx); +#endif context_deinit(ctx); OPENSSL_free(ctx); } |