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: Martin Glunz
Subject: [lwip-users] Re: [lwip] Memory leak and queued packets in etharp.c
Date: Thu, 09 Jan 2003 00:27:43 -0000

Martin Glunz wrote:
> I´ve found a memory leak in the etharp.c module:
...

Sorry, I just found a mistake in the code:

-    hdr->ethhdr.type = htons(ETHTYPE_ARP);      
+    hdr->ethhdr.type = htons(ETHTYPE_ARP);
+    pbuf_free(p);                            <-- This line must be
removed
     return p;

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




reply via email to

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