summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin Cernekee <cernekee@chromium.org>2017-01-27 12:38:46 -0800
committerPablo Neira Ayuso <pablo@netfilter.org>2017-02-01 18:05:04 +0100
commit832166dc4780e259424ebab07b42ecf42cde6fe3 (patch)
treec00c82bb237cbc2d431b671a124e2a090d12c289 /src
parent1ba5e76a368aeb9fe17d3b691df4faa0dadc4523 (diff)
conntrackd: cthelper: Free pktb after use
According to valgrind, this currently leaks ~512B to 2kB for each packet sent to the userspace helper. Signed-off-by: Kevin Cernekee <cernekee@chromium.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/cthelper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cthelper.c b/src/cthelper.c
index 54eb830..f01c509 100644
--- a/src/cthelper.c
+++ b/src/cthelper.c
@@ -325,6 +325,7 @@ static int nfq_queue_cb(const struct nlmsghdr *nlh, void *data)
if (pkt_verdict_issue(helper, myct, queue_num, id, verdict, pktb) < 0)
goto err4;
+ pktb_free(pktb);
nfct_destroy(ct);
if (myct->exp != NULL)
nfexp_destroy(myct->exp);