mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-08 08:33:39 +08: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:
@@ -70,6 +70,9 @@ void
|
|||||||
altcp_free(struct altcp_pcb *conn)
|
altcp_free(struct altcp_pcb *conn)
|
||||||
{
|
{
|
||||||
if (conn) {
|
if (conn) {
|
||||||
|
if (conn->fns && conn->fns->dealloc) {
|
||||||
|
conn->fns->dealloc(conn);
|
||||||
|
}
|
||||||
memp_free(MEMP_ALTCP_PCB, conn);
|
memp_free(MEMP_ALTCP_PCB, conn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user