mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 11:44:31 +02:00
Fix memory leak on error path in esp_ds_start_sign
This commit is contained in:
committed by
Aditya Patwardhan
parent
75940e9364
commit
de49ec5a46
@@ -129,6 +129,7 @@ esp_err_t esp_ds_start_sign(const void *message,
|
||||
|
||||
if (result == ETS_DS_INVALID_KEY) {
|
||||
ds_disable_release();
|
||||
free(context);
|
||||
return ESP_ERR_HW_CRYPTO_DS_INVALID_KEY;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user