kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/tw15438_mem_leak_on_wifi_start_stop_loop' into 'master'
Release DHCP structure memory when netif is down. See merge request !1386pull/1128/head
commit
52be20343b
|
@ -369,6 +369,14 @@ netif_remove(struct netif *netif)
|
|||
netif_set_down(netif);
|
||||
}
|
||||
|
||||
#if LWIP_DHCP
|
||||
/* netif not under DHCP control by default */
|
||||
if (netif->dhcp) {
|
||||
free(netif->dhcp);
|
||||
netif->dhcp = NULL;
|
||||
}
|
||||
#endif /* LWIP_DHCP */
|
||||
|
||||
mib2_remove_ip4(netif);
|
||||
|
||||
/* this netif is default? */
|
||||
|
|
Ładowanie…
Reference in New Issue