fix the bug in auto Ip memory leak
This commit is contained in:
parent
909a780e81
commit
c19bf9ab19
|
@ -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 a new issue