Adds mqtt host tests to Ci

- New job to run host tests
- Fix leak in case of usage of interface name
- Fix host tests to expect a call to `transport_destroy` and add an
  extra case
This commit is contained in:
Euripedes Rocha
2023-06-19 10:14:49 +02:00
parent aee82c7ba8
commit 4050df4caf
3 changed files with 22 additions and 1 deletions

View File

@ -608,6 +608,7 @@ void esp_mqtt_destroy_config(esp_mqtt_client_handle_t client)
}
free(client->config->alpn_protos);
free(client->config->clientkey_password);
free(client->config->if_name);
free(client->mqtt_state.connection.information.will_topic);
free(client->mqtt_state.connection.information.will_message);
free(client->mqtt_state.connection.information.client_id);