mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-29 22:20:30 +00:00
Add missing abort call to the end of tests
All tests should have an abort call in case of test failure to make sure everything is cleaned up. Also removed unused define. Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
72baf65819
commit
16e6dcd72e
@ -3343,6 +3343,7 @@ void aead_multipart_encrypt( int key_type_arg, data_t *key_data,
|
||||
|
||||
exit:
|
||||
psa_destroy_key( key );
|
||||
psa_aead_abort( &operation );
|
||||
mbedtls_free( output_data );
|
||||
mbedtls_free( part_data );
|
||||
mbedtls_free( final_data );
|
||||
@ -3715,6 +3716,7 @@ void aead_multipart_encrypt_decrypt( int key_type_arg, data_t *key_data,
|
||||
|
||||
exit:
|
||||
psa_destroy_key( key );
|
||||
psa_aead_abort( &operation );
|
||||
mbedtls_free( output_data );
|
||||
mbedtls_free( output_data2 );
|
||||
mbedtls_free( part_data );
|
||||
@ -3950,6 +3952,7 @@ void aead_multipart_decrypt( int key_type_arg, data_t *key_data,
|
||||
|
||||
exit:
|
||||
psa_destroy_key( key );
|
||||
psa_aead_abort( &operation );
|
||||
mbedtls_free( output_data );
|
||||
mbedtls_free( part_data );
|
||||
mbedtls_free( final_data );
|
||||
|
Loading…
x
Reference in New Issue
Block a user