From 7aba0361542ab9fb8319c3833474ce64a2a75ec6 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Sun, 31 Jan 2021 00:07:11 +0100 Subject: [PATCH] Add missing cleanup in test function Signed-off-by: Gilles Peskine --- tests/suites/test_suite_entropy.function | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/suites/test_suite_entropy.function b/tests/suites/test_suite_entropy.function index d9ea44149..2a7b0de13 100644 --- a/tests/suites/test_suite_entropy.function +++ b/tests/suites/test_suite_entropy.function @@ -217,6 +217,9 @@ void entropy_func_len( int len, int ret ) for( j = len; j < sizeof( buf ); j++ ) TEST_ASSERT( acc[j] == 0 ); + +exit: + mbedtls_entropy_free( &ctx ); } /* END_CASE */