lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #9192] mem_free of dhcp->options_in and dhcp->msg_in


From: Rikke Ottesen
Subject: [lwip-devel] [task #9192] mem_free of dhcp->options_in and dhcp->msg_in
Date: Mon, 16 Mar 2009 08:09:57 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7

URL:
  <http://savannah.nongnu.org/task/?9192>

                 Summary: mem_free of dhcp->options_in and dhcp->msg_in
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: ro03
            Submitted on: Mon 16 Mar 2009 08:09:56 AM GMT
                Category: DHCP
         Should Start On: Mon 16 Mar 2009 12:00:00 AM GMT
   Should be Finished on: Mon 16 Mar 2009 12:00:00 AM GMT
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
                  Effort: 0.05

    _______________________________________________________

Details:

Function:
static err_t dhcp_unfold_reply(struct dhcp *dhcp);

This function does not free the:

* dhcp->options_in = mem_malloc(dhcp->options_in_len);

* dhcp->msg_in = mem_malloc(sizeof(struct dhcp_msg) - DHCP_OPTIONS_LEN);



Resolution:
I have freed the memory in this function together with the pbuf *p:


static void dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, struct
ip_addr *addr, u16_t port)

in the bottom of the function I have freed it with dhcp_free_reply(dhcp);




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?9192>

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





reply via email to

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