diff --git a/src/main.cpp b/src/main.cpp index 2981c56..ef9d41d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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); }