lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #34525] Queueing a packet for nd leaks memory


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #34525] Queueing a packet for nd leaks memory
Date: Tue, 11 Oct 2011 09:52:46 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1

Follow-up Comment #2, bug #34525 (project lwip):

Hmm, from reading the code, the patch seems to be wrong and the current code
correct: q (as the pbuf passed to udp_sendto) does not get ref'ed by the
send-path and thus should not be freed, either. In contrast: only if
(copy_needed==0), it is ref'ed by us.

I haven't debugged this, though, only from reading the code.

Maybe you forgot to pbuf_free() the pbuf you sent after udp_sendto() returns?

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?34525>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

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