* [PATCH] conntrack: fix sysctl memory leak
@ 2011-03-10 18:14 Stephen Hemminger
2011-03-14 18:21 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2011-03-10 18:14 UTC (permalink / raw)
To: Patrick McHardy, David S. Miller, netdev; +Cc: netfilter-devel
Message in log because sysctl table was not empty at netns exit
WARNING: at net/sysctl_net.c:84 sysctl_net_exit+0x2a/0x2c()
Instrumenting showed that the nf_conntrack_timestamp was the entry
that was being created but not cleared.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
--- a/net/netfilter/nf_conntrack_core.c 2011-03-10 09:42:10.656565623 -0800
+++ b/net/netfilter/nf_conntrack_core.c 2011-03-10 09:42:30.652821904 -0800
@@ -1301,6 +1301,7 @@ static void nf_conntrack_cleanup_net(str
nf_ct_free_hashtable(net->ct.hash, net->ct.htable_size);
nf_conntrack_ecache_fini(net);
+ nf_conntrack_tstamp_fini(net);
nf_conntrack_acct_fini(net);
nf_conntrack_expect_fini(net);
kmem_cache_destroy(net->ct.nf_conntrack_cachep);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-14 18:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-10 18:14 [PATCH] conntrack: fix sysctl memory leak Stephen Hemminger
2011-03-14 18:21 ` Patrick McHardy
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).