]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxtables: fix leak in xt_buf object
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 1 Feb 2016 18:10:18 +0000 (19:10 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 16 Feb 2016 18:30:25 +0000 (19:30 +0100)
Release data area that is allocated by xt_buf_alloc().

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
libxtables/xtables.c

index fa979f239b911eac4637b91fb74efbcf686a3108..21e515d2c664849c07e641fb0363c1f294b1bb93 100644 (file)
@@ -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);
 }