lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Re: [lwip] Memory leak and queued packets in etharp.c


From: Nicolas Moreau
Subject: [lwip-users] Re: [lwip] Memory leak and queued packets in etharp.c
Date: Wed, 08 Jan 2003 23:17:26 -0000

Just out of curiosity, is someone validating, applying these patches ?

Nic

Quoting Martin Glunz <address@hidden>:

> Hello
> 
> I´ve found a memory leak in the etharp.c module:
> When etharp_output() returns an ARP request instead of
> the original packet, the pbuf containing the request
> will not be freed. My fix is the insertion of a new
> function etharp_arp_free() that should be called after
> the packet is sent.
> 
> There is another problem in etharp.c:
> If a packet gets queued because an ARP request must be sent,
> pbuf_ref() is called for this packet. This is ok so far, but
> if the queued pbuf is chained, the chain may get lost later,
> but before the packet is resent. I´ve fixed this in 
> pbuf_dechain() in pbuf.c.


-------------------------------------------------

[This message was sent through the lwip discussion list.]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]