Skip to content

Commit

Permalink
Merge branch 'bugfix/autoip_memoey_leak_debug' into 'master'
Browse files Browse the repository at this point in the history
fix autoip memory leak
  • Loading branch information
espxiehang committed Feb 28, 2019
1 parent e2a24de commit fe9a58c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/ipv4/autoip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fe9a58c

Please sign in to comment.