aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Cosgrove <tom.cosgrove@arm.com>2022-12-16 11:02:06 +0000
committerTom Cosgrove <tom.cosgrove@arm.com>2022-12-16 11:02:06 +0000
commit342d00bc220a9aea38563f6ce58be76a844a7995 (patch)
tree6611089bc6c4495f558dd1cd0642cc663d7a39ce
parent1133d2325b9bd3a00fcdbf647de27991562ae35c (diff)
downloadmbedtls-342d00bc220a9aea38563f6ce58be76a844a7995.zip
mbedtls-342d00bc220a9aea38563f6ce58be76a844a7995.tar.gz
mbedtls-342d00bc220a9aea38563f6ce58be76a844a7995.tar.bz2
Oops, use mbedtls_free() not plain free()
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
-rw-r--r--library/bignum_mod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/bignum_mod.c b/library/bignum_mod.c
index 7c89b57..31e18e7 100644
--- a/library/bignum_mod.c
+++ b/library/bignum_mod.c
@@ -276,7 +276,7 @@ int mbedtls_mpi_mod_inv( mbedtls_mpi_mod_residue *X,
mbedtls_platform_zeroize( working_memory,
working_limbs * sizeof(mbedtls_mpi_uint) );
- free( working_memory );
+ mbedtls_free( working_memory );
return ret;
}