homieiot / homie-esp8266

💡 ESP8266 framework for Homie, a lightweight MQTT convention for the IoT
http://homieiot.github.io/homie-esp8266
MIT License
1.36k stars 308 forks source link

#744 defensivly own char* values so freeing them is safe #745

Closed empirephoenix closed 1 year ago

empirephoenix commented 1 year ago

Hey, I think this might do (at least it works on my device ;)

Basically when getting a value (and only for the char* template) do the strdup internally and on all _value setting apis