|
From: | hanhui |
Subject: | [lwip-devel] [bug #31525] dhcp_stop() should be free the dhcp memory, which in netif. |
Date: | Tue, 02 Nov 2010 15:38:15 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.62 Safari/534.3 |
Follow-up Comment #2, bug #31525 (project lwip): I know that dhcp_start() checks to see if there is an existing client and reuses it if it can. But if run the following codes, it will lead to memory leaks. struct netif *netif = (struct netif *)malloc(...); ......; /* Initialize network interface */ dhcp_start(netif); ......; dhcp_release(netif); dhcp_stop(netif); netif_remove(netif); free(netif); _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?31525> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |