fix the bug in auto Ip memory leak
This commit is contained in:
parent
feb6973aa6
commit
909a780e81
1 changed files with 1 additions and 0 deletions
|
@ -383,6 +383,7 @@ 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);
|
||||
}
|
||||
return ERR_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue