fix the bug in auto Ip memory leak

This commit is contained in:
xiehang 2019-03-06 21:07:22 +08:00
parent 4c248f40aa
commit f2f9d92131

View file

@ -384,6 +384,7 @@ autoip_stop(struct netif *netif)
netif_set_addr(netif, IP4_ADDR_ANY, IP4_ADDR_ANY, IP4_ADDR_ANY);
}
mem_free(netif->autoip);
netif->autoip = NULL;
}
return ERR_OK;
}