mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-08-13 14:47:50 +00:00
Fix double free in case of test failure
Signed-off-by: Paul Elliott <[email protected]>
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user