fix the bug in auto Ip memory leak

This commit is contained in:
xiehang 2019-03-06 20:13:53 +08:00
parent feb6973aa6
commit 909a780e81

View file

@ -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;
}