summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-10-15 07:54:48 +0200
committerDavid S. Miller <davem@davemloft.net>2008-10-15 07:54:48 +0200
commit4ef079ccc1d934c5f9966f2bfcd5dbbef8f7a0a7 (patch)
treeccbd92a50d591602433b497625767d06e03c82f2 /net
parentPhonet: Simple doc fix. (diff)
downloadlinux-4ef079ccc1d934c5f9966f2bfcd5dbbef8f7a0a7.tar.xz
linux-4ef079ccc1d934c5f9966f2bfcd5dbbef8f7a0a7.zip
netns: fix net_generic array leak
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/net_namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c
index b0dc818a91d7..f1d07b5c1e17 100644
--- a/net/core/net_namespace.c
+++ b/net/core/net_namespace.c
@@ -96,7 +96,7 @@ static void net_free(struct net *net)
return;
}
#endif
-
+ kfree(net->gen);
kmem_cache_free(net_cachep, net);
}