Calling the residue_release() is not needed

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2022-12-20 13:54:26 +01:00
parent 8a26164684
commit 61fd1fb4b1
No known key found for this signature in database
GPG key ID: F072ACA227ACD71D

View file

@ -181,10 +181,6 @@ void mpi_mod_mul( char * input_A,
} }
exit: exit:
mbedtls_mpi_mod_residue_release( &rA );
mbedtls_mpi_mod_residue_release( &rB );
mbedtls_mpi_mod_residue_release( &rR );
mbedtls_mpi_mod_residue_release( &rX );
mbedtls_mpi_mod_modulus_free( &m ); mbedtls_mpi_mod_modulus_free( &m );
mbedtls_free( rA.p ); mbedtls_free( rA.p );
@ -237,10 +233,6 @@ void mpi_mod_mul_neg( char * input_A,
MBEDTLS_ERR_MPI_BAD_INPUT_DATA ); MBEDTLS_ERR_MPI_BAD_INPUT_DATA );
exit: exit:
mbedtls_mpi_mod_residue_release( &rA );
mbedtls_mpi_mod_residue_release( &rB );
mbedtls_mpi_mod_residue_release( &rR );
mbedtls_mpi_mod_residue_release( &rX );
mbedtls_mpi_mod_modulus_free( &m ); mbedtls_mpi_mod_modulus_free( &m );
mbedtls_mpi_mod_modulus_free( &fake_m ); mbedtls_mpi_mod_modulus_free( &fake_m );