Deallocate the configuration data structure
This commit is contained in:
parent
7bdf50a34f
commit
409c7f6561
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue