Skip to content

Commit

Permalink
fix for free'ing up memory after use
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Dec 20, 2024
1 parent 613c1aa commit 961453b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wolfcrypt/src/ecc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 961453b

Please sign in to comment.