Cleanup in wc_ecc_sign_hash_ex for blinding value to not call free twice (mp_clear already does mp_free).

This commit is contained in:
David Garske
2020-06-17 17:11:54 -07:00
parent 0fd5eda5af
commit 13753d56bb

View File

@@ -5232,7 +5232,6 @@ int wc_ecc_sign_hash_ex(const byte* in, word32 inlen, WC_RNG* rng,
}
}
mp_clear(b);
mp_free(b);
#ifdef WOLFSSL_SMALL_STACK
XFREE(b, key->heap, DYNAMIC_TYPE_ECC);
#endif