From 503d09b52d9d068a434f8b90647e46d86f33e30b Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Mon, 17 Oct 2022 12:27:43 +0200 Subject: [PATCH] Fix memory leak if unit test fails Signed-off-by: Gilles Peskine --- tests/suites/test_suite_lmots.function | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/suites/test_suite_lmots.function b/tests/suites/test_suite_lmots.function index 53ab02ff6e..fd6a89f2c8 100644 --- a/tests/suites/test_suite_lmots.function +++ b/tests/suites/test_suite_lmots.function @@ -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 */