mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
fix the bug in auto Ip memory leak
This commit is contained in:
@ -383,6 +383,7 @@ autoip_stop(struct netif *netif)
|
|||||||
if (ip4_addr_islinklocal(netif_ip4_addr(netif))) {
|
if (ip4_addr_islinklocal(netif_ip4_addr(netif))) {
|
||||||
netif_set_addr(netif, IP4_ADDR_ANY, IP4_ADDR_ANY, IP4_ADDR_ANY);
|
netif_set_addr(netif, IP4_ADDR_ANY, IP4_ADDR_ANY, IP4_ADDR_ANY);
|
||||||
}
|
}
|
||||||
|
mem_free(netif->autoip);
|
||||||
}
|
}
|
||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user