From 409c7f656143191920fab969ea35946a43aba25d Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 30 Apr 2023 14:17:58 +0200 Subject: [PATCH] Deallocate the configuration data structure --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) 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); }