fix ecc curve test in normal math mode, free is needed

This commit is contained in:
toddouska 2016-03-25 11:33:35 -07:00
parent 855e42b66a
commit 1649af37be
1 changed files with 1 additions and 0 deletions

View File

@ -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)