lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #35541] PPP Memory Leak


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #35541] PPP Memory Leak
Date: Thu, 16 Feb 2012 08:45:44 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.1) Gecko/20100101 Firefox/10.0.1

Update of bug #35541 (project lwip):

                  Status:                    None => Need Info              
             Assigned to:                    None => goldsimon              

    _______________________________________________________

Follow-up Comment #1:

I suggest 2 fixes for this:
- in pppOverSerialOpen(), call pbuf_free(pc->rx.inHead) if != NULL before
zeroing 'pc' using memset()
- always call pppRecvWakeup() and reset the pc->rx state in the function
before calling sio_read_abort()

While the first should be enough to fix the leak, the latter is nice to have.

The latter change would require that sio_recv()/sio_read() do not return any
RX bytes if they were aborted (or they would lead to allocating a pbuf
again).

As I'm not in a position to test this (I don't have a working PPP setup), can
you test this from git if I make the changes? If you can test it quickly, I'd
be tempted to add this to 1.4.1...

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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