mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix the bug in auto Ip memory leak
This commit is contained in:
parent
4c248f40aa
commit
f2f9d92131
@ -384,6 +384,7 @@ autoip_stop(struct netif *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);
|
mem_free(netif->autoip);
|
||||||
|
netif->autoip = NULL;
|
||||||
}
|
}
|
||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user