[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] Question about pbuf_free() in tcp_rst()
From: |
Iordan Neshev |
Subject: |
[lwip-devel] Question about pbuf_free() in tcp_rst() |
Date: |
Tue, 11 May 2010 14:32:40 +0300 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
tcp_out.c:
void tcp_rst()
{
...
at the end, line 1220:
/* Send output with hardcoded TTL since we have no access to the pcb */
ip_output(p, local_ip, remote_ip, TCP_TTL, 0, IP_PROTO_TCP);
pbuf_free(p); // ???
}
Wasn't it the driver's responsibility to free the pbuf?
If yes, should we replace pbuf_free(p) with LWIP_ASSERT("p is freed", ...) ?
// by the way, according to the Mozilla's spell checker "hardcoded" in
the comment should be split in two: "hard coded"
// if someone cares.
- [lwip-devel] Question about pbuf_free() in tcp_rst(),
Iordan Neshev <=