mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 02:37:19 +02:00
Merge branch 'bugfix/autoip_memoey_leak_debug_v3.1' into 'release/v3.1'
fix the bug in auto Ip memory leak(backport v3.1) See merge request idf/esp-idf!4430
This commit is contained in:
@ -383,6 +383,8 @@ autoip_stop(struct netif *netif)
|
||||
if (ip4_addr_islinklocal(netif_ip4_addr(netif))) {
|
||||
netif_set_addr(netif, IP4_ADDR_ANY, IP4_ADDR_ANY, IP4_ADDR_ANY);
|
||||
}
|
||||
mem_free(netif->autoip);
|
||||
netif->autoip = NULL;
|
||||
}
|
||||
return ERR_OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user