mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-10 15:40:30 +00:00
Fix a memory leak in a test
This commit is contained in:
parent
b7ecdf0509
commit
1d7c082124
@ -1684,6 +1684,7 @@ void derive_key_policy( int policy_usage,
|
|||||||
TEST_ASSERT( status == PSA_ERROR_NOT_PERMITTED );
|
TEST_ASSERT( status == PSA_ERROR_NOT_PERMITTED );
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
mbedtls_free( public_key );
|
||||||
psa_generator_abort( &generator );
|
psa_generator_abort( &generator );
|
||||||
psa_destroy_key( key_slot );
|
psa_destroy_key( key_slot );
|
||||||
mbedtls_psa_crypto_free( );
|
mbedtls_psa_crypto_free( );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user