forked from espressif/esp-idf
Merge branch 'bugfix/fix_esp_https_ota_v4.3' into 'release/v4.3'
esp_https_ota: Fix esp_https_ota_begin may exist memory leak (backport v4.3) See merge request espressif/esp-idf!16778
This commit is contained in:
@@ -182,7 +182,7 @@ esp_err_t esp_https_ota_begin(esp_https_ota_config_t *ota_config, esp_https_ota_
|
|||||||
err = ota_config->http_client_init_cb(https_ota_handle->http_client);
|
err = ota_config->http_client_init_cb(https_ota_handle->http_client);
|
||||||
if (err != ESP_OK) {
|
if (err != ESP_OK) {
|
||||||
ESP_LOGE(TAG, "http_client_init_cb returned 0x%x", err);
|
ESP_LOGE(TAG, "http_client_init_cb returned 0x%x", err);
|
||||||
goto failure;
|
goto http_cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user