mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-06 07:12:32 +01:00
Fix memory leak if unit test fails
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
f33da19dfb
commit
503d09b52d
|
|
@ -193,6 +193,7 @@ void lmots_import_export_test ( data_t * pub_key, int expected_import_rc )
|
|||
|
||||
exit:
|
||||
mbedtls_lmots_public_free( &ctx );
|
||||
mbedtls_free( exported_pub_key );
|
||||
}
|
||||
/* END_CASE */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue