From 4c248f40aadb7fe4c9c76465ef94115694817cf1 Mon Sep 17 00:00:00 2001 From: xiehang Date: Wed, 6 Mar 2019 19:51:01 +0800 Subject: [PATCH] fix the bug in auto Ip memory leak --- components/lwip/core/ipv4/autoip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/lwip/core/ipv4/autoip.c b/components/lwip/core/ipv4/autoip.c index f27d28aa2..92f5e22ca 100644 --- a/components/lwip/core/ipv4/autoip.c +++ b/components/lwip/core/ipv4/autoip.c @@ -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; }