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
1 changed files with 1 additions and 0 deletions
|
@ -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