From e78533146bcbb8a1c2855998506eff19a67b7bab Mon Sep 17 00:00:00 2001 From: technyon Date: Sun, 19 Feb 2023 17:11:36 +0100 Subject: [PATCH] add missing delete --- Config.h | 2 +- Network.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Config.h b/Config.h index dceb52a..339bd9b 100644 --- a/Config.h +++ b/Config.h @@ -1,6 +1,6 @@ #pragma once -#define NUKI_HUB_VERSION "8.9-json-1" +#define NUKI_HUB_VERSION "8.9-json-2" #define MQTT_QOS_LEVEL 1 #define MQTT_CLEAN_SESSIONS false \ No newline at end of file diff --git a/Network.cpp b/Network.cpp index e156427..a932787 100644 --- a/Network.cpp +++ b/Network.cpp @@ -581,6 +581,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n _device->mqttPublish(path.c_str(), MQTT_QOS_LEVEL, true, jsonOut); + delete jsonOut; // Battery critical publishHassTopic("binary_sensor",