From 6ffd29507c9ed643a1c28decced13773251edc48 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sun, 16 May 2010 13:12:15 +0000 Subject: [PATCH] Free recv_data when TF_RXCLOSED is set --- src/core/tcp_in.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index 0a0d91a0..446380f2 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -349,6 +349,7 @@ tcp_input(struct pbuf *p, struct netif *inp) if (pcb->flags & TF_RXCLOSED) { /* received data although already closed -> abort (send RST) to notify the remote host that not all data has been processed */ + pbuf_free(recv_data); tcp_abort(pcb); goto aborted; }