[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #34170] Memory leak in sntp_send_request()
From: |
Gustl |
Subject: |
[lwip-devel] [bug #34170] Memory leak in sntp_send_request() |
Date: |
Tue, 30 Aug 2011 05:54:29 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0 |
URL:
<http://savannah.nongnu.org/bugs/?34170>
Summary: Memory leak in sntp_send_request()
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: gustl
Submitted on: Di 30 Aug 2011 05:54:28 GMT
Category: Contrib
Severity: 3 - Normal
Item Group: Crash Error
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: 1.4.0
_______________________________________________________
Details:
This allocation is never freed:
p = pbuf_alloc(PBUF_TRANSPORT, SNTP_MSG_LEN, PBUF_RAM);
I suggest to add a
pbuf_free(p);
right after this line:
udp_sendto(sntp_pcb, p, server_addr, SNTP_PORT);
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?34170>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #34170] Memory leak in sntp_send_request(),
Gustl <=