commit | 9488b8c513f4779c5053801de6a5137e3b1ffadf | [log] [tgz] |
---|---|---|
author | Paul Elliott <paul.elliott@arm.com> | Thu Oct 24 14:41:01 2024 +0100 |
committer | Paul Elliott <paul.elliott@arm.com> | Fri Oct 25 12:00:05 2024 +0100 |
tree | 353df8578436240da26a01b6b44c7a5f30f74293 | |
parent | 1348b6a86125ba59fdbdce611d6a98621402084f [diff] |
Fix double free in case of test failure Signed-off-by: Paul Elliott <paul.elliott@arm.com>
diff --git a/tests/suites/test_suite_psa_crypto_memory.function b/tests/suites/test_suite_psa_crypto_memory.function index cc87848..50539e8 100644 --- a/tests/suites/test_suite_psa_crypto_memory.function +++ b/tests/suites/test_suite_psa_crypto_memory.function
@@ -107,7 +107,10 @@ exit: mbedtls_free(local_input.buffer); - mbedtls_free(input); + + if (local_input.buffer != input) { + mbedtls_free(input); + } } /* END_CASE */