netns: fix net_generic array leak
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3497b2f274
commit
4ef079ccc1
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ static void net_free(struct net *net)
|
|||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
kfree(net->gen);
|
||||
kmem_cache_free(net_cachep, net);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue