mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
mdns: fixed static memory leak
This commit is contained in:
parent
c8cb4cd3c8
commit
6bb68a5a75
@ -4011,6 +4011,7 @@ static esp_err_t _mdns_service_task_stop()
|
||||
{
|
||||
MDNS_SERVICE_LOCK();
|
||||
_mdns_stop_timer();
|
||||
MDNS_SERVICE_UNLOCK();
|
||||
if (_mdns_service_task_handle) {
|
||||
mdns_action_t action;
|
||||
mdns_action_t * a = &action;
|
||||
@ -4023,7 +4024,6 @@ static esp_err_t _mdns_service_task_stop()
|
||||
vTaskDelay(10 / portTICK_PERIOD_MS);
|
||||
}
|
||||
}
|
||||
MDNS_SERVICE_UNLOCK();
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
@ -4115,8 +4115,8 @@ void mdns_free()
|
||||
if (!_mdns_server) {
|
||||
return;
|
||||
}
|
||||
_mdns_service_task_stop();
|
||||
mdns_service_remove_all(_mdns_server);
|
||||
_mdns_service_task_stop();
|
||||
for (i=0; i<TCPIP_ADAPTER_IF_MAX; i++) {
|
||||
for (j=0; j<MDNS_IP_PROTOCOL_MAX; j++) {
|
||||
_mdns_pcb_deinit(i, j);
|
||||
|
Loading…
x
Reference in New Issue
Block a user