From 961453b5ee5bafabf0dcfbda0b2cfc0a280c24a5 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Fri, 20 Dec 2024 14:58:57 -0700 Subject: [PATCH] fix for free'ing up memory after use --- wolfcrypt/src/ecc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 22d0ddc505..9dfdc47baf 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -9164,8 +9164,8 @@ static int ecc_verify_hash(mp_int *r, mp_int *s, const byte* hash, mp_clear(u1); mp_clear(u2); #ifndef WOLFSSL_NO_MALLOC - FREE_MP_INT_SIZE(u1, key->heap, DYNAMIC_TYPE_ECC); - FREE_MP_INT_SIZE(u2, key->heap, DYNAMIC_TYPE_ECC); + XFREE(u1, key->heap, DYNAMIC_TYPE_ECC); + XFREE(u2, key->heap, DYNAMIC_TYPE_ECC); #endif #endif #if !defined(WOLFSSL_ASYNC_CRYPT) || !defined(HAVE_CAVIUM_V)