All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: netfilter-devel@vger.kernel.org
Cc: fw@strlen.de
Subject: [PATCH 2/2 nft] ct: release ct_label table on exit
Date: Wed, 17 Aug 2016 13:13:03 +0200	[thread overview]
Message-ID: <1471432383-4318-2-git-send-email-pablo@netfilter.org> (raw)
In-Reply-To: <1471432383-4318-1-git-send-email-pablo@netfilter.org>

Just like we do with other symbol tables.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 src/ct.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/ct.c b/src/ct.c
index f6b1dc1..f6018d8 100644
--- a/src/ct.c
+++ b/src/ct.c
@@ -164,6 +164,11 @@ static void __init ct_label_table_init(void)
 	ct_label_tbl = rt_symbol_table_init(CONNLABEL_CONF);
 }
 
+static void __exit ct_label_table_exit(void)
+{
+	rt_symbol_table_free(ct_label_tbl);
+}
+
 #ifndef NF_CT_HELPER_NAME_LEN
 #define NF_CT_HELPER_NAME_LEN	16
 #endif
-- 
2.1.4


  reply	other threads:[~2016-08-17 11:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-17 11:13 [PATCH 1/2 nft] ct: add missing slash to connlabel path Pablo Neira Ayuso
2016-08-17 11:13 ` Pablo Neira Ayuso [this message]
2016-08-17 11:36   ` [PATCH 2/2 nft] ct: release ct_label table on exit Florian Westphal
2016-08-17 11:36 ` [PATCH 1/2 nft] ct: add missing slash to connlabel path Florian Westphal

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=1471432383-4318-2-git-send-email-pablo@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=fw@strlen.de \
    --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.