[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #24480] Unreleased memory in DHCP
From: |
Benjamin Silvestre |
Subject: |
[lwip-devel] [bug #24480] Unreleased memory in DHCP |
Date: |
Tue, 07 Oct 2008 17:35:15 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.1.16) Gecko/20080702 Iceweasel/2.0.0.16 (Debian-2.0.0.16-0etch1) |
URL:
<http://savannah.nongnu.org/bugs/?24480>
Summary: Unreleased memory in DHCP
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: bsilvestre
Submitted on: mar 07 oct 2008 17:35:13 GMT
Category: None
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: 1.3.0
_______________________________________________________
Details:
I use the atmel's avr32 port.
In dhcp_start (dhcp.c) when a client is already attached, pcb and p members
are not destroyed. This leak leads to an unworking dhcp after few starts
(with, in my case, no more udp pcb available).
Calling dhcp_release or/and dhcp_stop before restarting dhcp don't fix the
problem.
So I add udp_remove and pbuf_free when a client is already attached. This
simple workaround works fine for me:
(file dhcp.c after line 586, see dhcp_diff enclosed)
if (dhcp->pcb != NULL) {
udp_remove(dhcp->pcb);
dhcp->pcb = NULL;
}
if (dhcp->p != NULL) {
pbuf_free(dhcp->p);
dhcp->p = NULL;
}
Regards,
Benjamin
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: mar 07 oct 2008 17:35:13 GMT Name: dhcp_diff Size: 439 o By:
bsilvestre
<http://savannah.nongnu.org/bugs/download.php?file_id=16625>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?24480>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [bug #24480] Unreleased memory in DHCP,
Benjamin Silvestre <=