From 13753d56bbc443b80892bca325156f01b911c189 Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 17 Jun 2020 17:11:54 -0700 Subject: [PATCH] Cleanup in `wc_ecc_sign_hash_ex` for blinding value to not call free twice (mp_clear already does mp_free). --- wolfcrypt/src/ecc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 9dc0decc7..d6c480d17 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -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