From 1649af37be2c73664ea21d914e375943070e3adc Mon Sep 17 00:00:00 2001 From: toddouska Date: Fri, 25 Mar 2016 11:33:35 -0700 Subject: [PATCH] fix ecc curve test in normal math mode, free is needed --- wolfcrypt/test/test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 4b3a016b5..d33ab5aa0 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -6259,6 +6259,7 @@ static int ecc_test_vector_item(const eccVector* vector, WC_RNG* rng) memset(sig, 0, sizeof(sig)); x = sizeof(sig); + wc_ecc_free(&userA); /* free key before importing a new one over the top */ ret = wc_ecc_import_raw(&userA, vector->Qx, vector->Qy, vector->d, vector->curveName); if (ret != 0)