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