From fe9a58cb7abdc74e7a2196b7c4e0a29ff9042f88 Mon Sep 17 00:00:00 2001 From: xiehang Date: Thu, 28 Feb 2019 19:37:13 +0800 Subject: [PATCH] Merge branch 'bugfix/autoip_memoey_leak_debug' into 'master' fix autoip memory leak --- src/core/ipv4/autoip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/ipv4/autoip.c b/src/core/ipv4/autoip.c index a5a63df82..7f8f44669 100644 --- a/src/core/ipv4/autoip.c +++ b/src/core/ipv4/autoip.c @@ -361,6 +361,8 @@ autoip_stop(struct netif *netif) if (ip4_addr_islinklocal(netif_ip4_addr(netif))) { netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4); } + mem_free(autoip); + netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_AUTOIP, NULL); } return ERR_OK; }