Fix double free in case of test failure

Signed-off-by: Paul Elliott <[email protected]>
This commit is contained in:
Paul Elliott
2024-10-24 15:26:11 +01:00
parent 0f65366c05
commit e4997651d7
@@ -107,7 +107,10 @@ void local_input_alloc(int input_len, psa_status_t exp_status)
exit:
mbedtls_free(local_input.buffer);
mbedtls_free(input);
if (local_input.buffer != input) {
mbedtls_free(input);
}
}
/* END_CASE */