lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #48330] Memory leak in snmp_send_trap function


From: Marco Veeneman
Subject: [lwip-devel] [bug #48330] Memory leak in snmp_send_trap function
Date: Tue, 28 Jun 2016 14:18:46 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36

URL:
  <http://savannah.nongnu.org/bugs/?48330>

                 Summary: Memory leak in snmp_send_trap function
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: mave
            Submitted on: Tue 28 Jun 2016 02:18:44 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

Sending traps causes leaking memory.
In snmp_send_trap a pbuf is allocated in RAM but it is never freed. Probably
this was introduced while rewriting the SNMP traps.

I think adding pbuf_free(p); after snmp_sendto solves this issue.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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