All of lore.kernel.org
 help / color / mirror / Atom feed
From: Giuseppe Longo <giuseppelng@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH 2/2] nft: mem leak in nft_rule_list_cb
Date: Tue, 25 Jun 2013 09:46:17 +0200	[thread overview]
Message-ID: <20130625074617.4665.91288.stgit@localhost> (raw)
In-Reply-To: <20130625074606.4665.80766.stgit@localhost>

Memory leak in function nft_rule_list_cb fixed.

Signed-off-by: Giuseppe Longo <giuseppelng@gmail.com>
---
 iptables/nft.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/iptables/nft.c b/iptables/nft.c
index 680b2f0..98d602c 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -1140,6 +1140,7 @@ static int nft_rule_list_cb(const struct nlmsghdr *nlh, void *data)
 	return MNL_CB_OK;
 out:
 	nft_rule_free(r);
+	nft_rule_list_free(list);
 err:
 	return MNL_CB_OK;
 }


  reply	other threads:[~2013-06-25  7:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-25  7:46 [PATCH 1/2] nft: print counter issues Giuseppe Longo
2013-06-25  7:46 ` Giuseppe Longo [this message]
2013-06-25 10:00   ` [PATCH 2/2] nft: mem leak in nft_rule_list_cb Pablo Neira Ayuso
2013-06-25 10:00 ` [PATCH 1/2] nft: print counter issues Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130625074617.4665.91288.stgit@localhost \
    --to=giuseppelng@gmail.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.