From f303f3f52370e6f5b7010b805531022de5144b39 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 3 May 2011 18:13:42 +0200 Subject: [PATCH] Fix a logic error in the SACK list cleanup causing a memleak and invalid memory access at the same time. --- src/stream-tcp-sack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream-tcp-sack.c b/src/stream-tcp-sack.c index 642487ffea..7a69869afe 100644 --- a/src/stream-tcp-sack.c +++ b/src/stream-tcp-sack.c @@ -328,7 +328,7 @@ void StreamTcpSackFreeList(TcpStream *stream) { while (rec != NULL) { next = rec->next; - SCFree(next); + SCFree(rec); rec = next; }