lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #15205] memory leak in autoip.c


From: Simon Goldschmidt
Subject: [lwip-devel] [task #15205] memory leak in autoip.c
Date: Wed, 13 Mar 2019 02:52:31 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:65.0) Gecko/20100101 Firefox/65.0

Update of task #15205 (project lwip):

                  Status:                    None => Cancelled              
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

This should be reported as a 'bug', not a 'task'. Thanks.

And strictly speaking, this is not a memory leak as the memory will not be
allocated again when starting autoip again. The memory just stays allocated.
This was good enough for embedded targets. It might not be good enough for
lwIP used as a library though.

However, your fix doesn't really work as is, as there's the possibility to
allocate the struct autoip from static memory (in situations where lwIP has no
heap at all). When this is done, you can't just call mem_free on this pointer.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/task/?15205>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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