Deallocate the configuration data structure

This commit is contained in:
coolneng 2023-04-30 14:17:58 +02:00
parent 7bdf50a34f
commit 409c7f6561
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 1 additions and 0 deletions

View File

@ -36,5 +36,6 @@ void loop() {
mqtt_transfer(mqtt_client, config, data);
}
disconnect_mqtt(mqtt_client, config->topic);
free(config);
enter_deep_sleep(false, config->sleep_time);
}