mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 04:34:31 +02:00
fix the bug in auto Ip memory leak
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user