Fix memory leaks: uninstantiate DRBG during health checks. Cleanup md_ctx
[openssl.git] / fips / ecdsa / fips_ecdsa_selftest.c
index 722ae67..7f7ddda 100644 (file)
@@ -151,6 +151,8 @@ int FIPS_selftest_ecdsa()
 
        err:
 
+       FIPS_md_ctx_cleanup(&mctx);
+
        if (x)
                BN_clear_free(x);
        if (y)