mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/esp_http_client_socket_cleanup_exception' into 'master'
esp_http_client: fix exception when calling esp_transport_list_destroy. Closes IDFGH-6001 See merge request espressif/esp-idf!15544
This commit is contained in:
commit
8f3b89dedf
@ -724,7 +724,9 @@ esp_err_t esp_http_client_cleanup(esp_http_client_handle_t client)
|
||||
return ESP_FAIL;
|
||||
}
|
||||
esp_http_client_close(client);
|
||||
esp_transport_list_destroy(client->transport_list);
|
||||
if (client->transport_list) {
|
||||
esp_transport_list_destroy(client->transport_list);
|
||||
}
|
||||
if (client->request) {
|
||||
http_header_destroy(client->request->headers);
|
||||
if (client->request->buffer) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user