fix the bug in auto Ip memory leak

This commit is contained in:
xiehang 2019-03-06 21:04:08 +08:00
parent 909a780e81
commit c19bf9ab19

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