[Top][All Lists]

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

[lwip-devel] [bug #50891] memory leak

From: shen xiaomin
Subject: [lwip-devel] [bug #50891] memory leak
Date: Fri, 28 Apr 2017 05:53:42 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36


                 Summary: memory leak
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: rhino949
            Submitted on: Fri Apr 28 09:53:41 2017
                Category: DHCP
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: 1.4.1



first thank you for read!my english is very bad,so please forgive me.
i use dhcp like this:
netif_add(&DP83848_netif, &g_local_ip, &g_local_netmask, &g_local_gw, NULL,
&ethernetif_init, &ethernet_input); 

when dhcp_discover() send a message use(udp_sendto_if(dhcp->pcb, dhcp->p_out,
IP_ADDR_BROADCAST, DHCP_SERVER_PORT, netif)),my program jump,analysis the
received frame,then analysis done,it will tranfer dhcp_handle_offer(),then
tranfer dhcp_select(netif),the last tranfer will send a message,then free the
memory,but the last tranfer used the same pointer(DP83848_netif.dhcp),so when
the program return the dhcp_discover() to continue run,    dhcp_delete_msg()
will not free the memory it alloced!

please give me a guide,how i can avoid it!thank you.


File Attachments:

Date: Fri Apr 28 09:53:41 2017  Name: dhcp.c  Size: 65kB   By: rhino949



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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