Blame SOURCES/conntrack-tools-1.4.4-free-pktb-after-use.patch

27ee02
From 832166dc4780e259424ebab07b42ecf42cde6fe3 Mon Sep 17 00:00:00 2001
27ee02
From: Kevin Cernekee <cernekee@chromium.org>
27ee02
Date: Fri, 27 Jan 2017 12:38:46 -0800
27ee02
Subject: conntrackd: cthelper: Free pktb after use
27ee02
27ee02
According to valgrind, this currently leaks ~512B to 2kB for each
27ee02
packet sent to the userspace helper.
27ee02
27ee02
Signed-off-by: Kevin Cernekee <cernekee@chromium.org>
27ee02
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
27ee02
---
27ee02
 src/cthelper.c | 1 +
27ee02
 1 file changed, 1 insertion(+)
27ee02
27ee02
diff --git a/src/cthelper.c b/src/cthelper.c
27ee02
index 54eb830..f01c509 100644
27ee02
--- a/src/cthelper.c
27ee02
+++ b/src/cthelper.c
27ee02
@@ -325,6 +325,7 @@ static int nfq_queue_cb(const struct nlmsghdr *nlh, void *data)
27ee02
 	if (pkt_verdict_issue(helper, myct, queue_num, id, verdict, pktb) < 0)
27ee02
 		goto err4;
27ee02
 
27ee02
+	pktb_free(pktb);
27ee02
 	nfct_destroy(ct);
27ee02
 	if (myct->exp != NULL)
27ee02
 		nfexp_destroy(myct->exp);
27ee02
-- 
27ee02
cgit v0.12
27ee02