mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-11-27 11:41:17 +03:00
Fix leak of modulus structures in tests
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -102,6 +102,12 @@ int mbedtls_test_read_mpi_modulus( mbedtls_mpi_mod_modulus *N,
|
||||
return( ret );
|
||||
}
|
||||
|
||||
void mbedtls_test_mpi_mod_modulus_free_with_limbs( mbedtls_mpi_mod_modulus *N )
|
||||
{
|
||||
mbedtls_free( (mbedtls_mpi_uint*) N->p );
|
||||
mbedtls_mpi_mod_modulus_free( N );
|
||||
}
|
||||
|
||||
int mbedtls_test_read_mpi( mbedtls_mpi *X, const char *s )
|
||||
{
|
||||
int negative = 0;
|
||||
|
||||
Reference in New Issue
Block a user