fix memory leak

This commit is contained in:
MichaelDvP
2022-10-14 14:27:50 +02:00
parent 1647a6d0a7
commit 9d4d3738ff

View File

@@ -912,6 +912,7 @@ void Mqtt::publish_ha_sensor_config(DeviceValue & dv, const std::string & model,
dev_json["mf"] = brand; dev_json["mf"] = brand;
dev_json["mdl"] = model; dev_json["mdl"] = model;
dev_json["via_device"] = "ems-esp"; dev_json["via_device"] = "ems-esp";
free(cap_name);
} }
// calculate the min and max // calculate the min and max