diff --git a/tests/api/test_hmac.c b/tests/api/test_hmac.c index b2c83f2794..9961c55b01 100644 --- a/tests/api/test_hmac.c +++ b/tests/api/test_hmac.c @@ -749,6 +749,7 @@ int test_tls_hmac_size_overflow(void) wolfSSL_free(ssl); wolfSSL_CTX_free(ctx); + wolfSSL_Cleanup(); #endif /* !NO_HMAC && !WOLFSSL_AEAD_ONLY && !NO_TLS && NO_OLD_TLS && * !NO_WOLFSSL_CLIENT */ return EXPECT_RESULT(); diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index d7acd0bdaf..a34ee1ae37 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -1851,7 +1851,6 @@ int wc_ecc_curve_cache_init(void) void wc_ecc_curve_cache_free(void) { int x; - /* free all ECC curve caches */ for (x = 0; x < (int)ECC_SET_COUNT; x++) { #ifdef WOLFSSL_NO_MALLOC