summaryrefslogtreecommitdiffstats
path: root/libxtables
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-02-01 19:10:18 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2016-02-16 19:30:25 +0100
commitca9a1a6a9f64ee5d94038abb451b27cc9581c81b (patch)
tree1376ceca136efcf6d7f3a757b68623a03dfb2119 /libxtables
parent7dea33bbeaf8a9ea69c7a130c0d622e3178c3744 (diff)
libxtables: fix leak in xt_buf object
Release data area that is allocated by xt_buf_alloc(). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'libxtables')
-rw-r--r--libxtables/xtables.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libxtables/xtables.c b/libxtables/xtables.c
index fa979f23..21e515d2 100644
--- a/libxtables/xtables.c
+++ b/libxtables/xtables.c
@@ -2015,6 +2015,7 @@ struct xt_buf *xt_buf_alloc(int size)
void xt_buf_free(struct xt_buf *buf)
{
+ free(buf->data);
free(buf);
}