Issue: Memory leak in MQTT callback function #32
https://github.com/toblum/McLighting/issues/32 added free()
This commit is contained in:
@@ -384,6 +384,8 @@ void checkForRequests() {
|
||||
DBG_OUTPUT_PORT.printf("MQTT: Set WS2812 mode [%s]\n", payload);
|
||||
mqtt_client.publish(mqtt_outtopic, String(String("OK ") + String((char *)payload)).c_str());
|
||||
}
|
||||
|
||||
free(payload);
|
||||
}
|
||||
|
||||
void mqtt_reconnect() {
|
||||
|
||||
Reference in New Issue
Block a user