Add 'exit' label and variable initialization to relevant test suite functions
diff --git a/tests/suites/test_suite_entropy.function b/tests/suites/test_suite_entropy.function
index 844eb96..6d137ad 100644
--- a/tests/suites/test_suite_entropy.function
+++ b/tests/suites/test_suite_entropy.function
@@ -50,6 +50,7 @@
TEST_ASSERT( entropy_write_seed_file( &ctx, path ) == ret );
TEST_ASSERT( entropy_update_seed_file( &ctx, path ) == ret );
+exit:
entropy_free( &ctx );
}
/* END_CASE */
@@ -72,6 +73,7 @@
TEST_ASSERT( entropy_add_source( &ctx, entropy_dummy_source, NULL, 16 )
== POLARSSL_ERR_ENTROPY_MAX_SOURCES );
+exit:
entropy_free( &ctx );
}
/* END_CASE */
@@ -130,6 +132,7 @@
((void) path);
#endif
+exit:
entropy_free( &ctx );
}
/* END_CASE */
@@ -159,6 +162,7 @@
TEST_ASSERT( ret == result );
}
+exit:
entropy_free( &ctx );
}
/* END_CASE */