netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3 iptables,xlate4] libxtables: fix leak in xt_buf object
@ 2016-02-01 18:43 Pablo Neira Ayuso
  2016-02-01 18:43 ` [PATCH 2/3 iptables,xlate4] extensions: rename xt_buf to xt_xlate Pablo Neira Ayuso
  2016-02-01 18:43 ` [PATCH 3/3 iptables,xlate4] xtables: add xt_xlate_add_comment() Pablo Neira Ayuso
  0 siblings, 2 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2016-02-01 18:43 UTC (permalink / raw)
  To: netfilter-devel; +Cc: kaber

Release data area that is allocated by xt_buf_alloc().

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 libxtables/xtables.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libxtables/xtables.c b/libxtables/xtables.c
index fa979f2..21e515d 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);
 }
 
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-01 18:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-01 18:43 [PATCH 1/3 iptables,xlate4] libxtables: fix leak in xt_buf object Pablo Neira Ayuso
2016-02-01 18:43 ` [PATCH 2/3 iptables,xlate4] extensions: rename xt_buf to xt_xlate Pablo Neira Ayuso
2016-02-01 18:43 ` [PATCH 3/3 iptables,xlate4] xtables: add xt_xlate_add_comment() Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).