mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Bugfix for mqtt memory leak
This commit is contained in:
parent
64d920185b
commit
91238f5b68
1 changed files with 1 additions and 0 deletions
|
@ -484,6 +484,7 @@ void mqtt_message_received(char* topic_raw, int topic_len, char* data, int data_
|
||||||
if (strcmp(topic, generateButtonTopic("STOP").c_str()) == 0) {
|
if (strcmp(topic, generateButtonTopic("STOP").c_str()) == 0) {
|
||||||
setBatteryPause(true, false, true);
|
setBatteryPause(true, false, true);
|
||||||
}
|
}
|
||||||
|
free(topic);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mqtt_event_handler(void* handler_args, esp_event_base_t base, int32_t event_id, void* event_data) {
|
static void mqtt_event_handler(void* handler_args, esp_event_base_t base, int32_t event_id, void* event_data) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue