netns: fix net_generic array leak
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 15 Oct 2008 05:54:48 +0000 (22:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Oct 2008 05:54:48 +0000 (22:54 -0700)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c

index b0dc818a91d7fadafb9ea7308fa66f1140ca45a4..f1d07b5c1e17257c21f6669588946a0df08b77a4 100644 (file)
@@ -96,7 +96,7 @@ static void net_free(struct net *net)
                return;
        }
 #endif
-
+       kfree(net->gen);
        kmem_cache_free(net_cachep, net);
 }