mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
Remove modulus double free
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
parent
d3e86a170a
commit
631f63d29d
@ -1601,8 +1601,6 @@ void ecp_mod_mul_inv(char *input_A, int id, int ctype, int iret)
|
|||||||
MBEDTLS_MPI_MOD_EXT_REP_LE), 0);
|
MBEDTLS_MPI_MOD_EXT_REP_LE), 0);
|
||||||
TEST_EQUAL(memcmp(bufx, &Result, sizeof(mbedtls_mpi_uint)), 0);
|
TEST_EQUAL(memcmp(bufx, &Result, sizeof(mbedtls_mpi_uint)), 0);
|
||||||
|
|
||||||
/* Test for user free-ing allocated memory */
|
|
||||||
mbedtls_mpi_mod_modulus_free(&m);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user