Fix memory leak if unit test fails

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2022-10-17 12:27:43 +02:00
parent f33da19dfb
commit 503d09b52d

View file

@ -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 */