From 9d120c59eaf2e87f4b3b3b07567a4d119805c5d3 Mon Sep 17 00:00:00 2001 From: David Girault Date: Tue, 27 Jun 2017 13:17:17 +0200 Subject: [PATCH] altcp: fix altcp_free call dealloc function in altcp_free() so it can be propagate it to inner_conn. --- src/core/altcp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/altcp.c b/src/core/altcp.c index 4e931f9e..2941a6c4 100644 --- a/src/core/altcp.c +++ b/src/core/altcp.c @@ -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); } }