mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-09-13 13:49:54 +00:00
Fix memory leak if unit test fails
Signed-off-by: Gilles Peskine <[email protected]>
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