mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-06-24 01:41:35 +03:00
Fix memory leak if unit test fails
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@ -193,6 +193,7 @@ void lmots_import_export_test ( data_t * pub_key, int expected_import_rc )
|
|||||||
|
|
||||||
exit:
|
exit:
|
||||||
mbedtls_lmots_public_free( &ctx );
|
mbedtls_lmots_public_free( &ctx );
|
||||||
|
mbedtls_free( exported_pub_key );
|
||||||
}
|
}
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user