mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-24 15:14:06 +00:00
altcp: fix altcp_free
call dealloc function in altcp_free() so it can be propagate it to inner_conn.
This commit is contained in:
parent
8b1a4ef711
commit
9d120c59ea
@ -70,6 +70,9 @@ void
|
||||
altcp_free(struct altcp_pcb *conn)
|
||||
{
|
||||
if (conn) {
|
||||
if (conn->fns && conn->fns->dealloc) {
|
||||
conn->fns->dealloc(conn);
|
||||
}
|
||||
memp_free(MEMP_ALTCP_PCB, conn);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user