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
|
@ -96,7 +96,7 @@ static void net_free(struct net *net)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
kfree(net->gen);
|
||||||
kmem_cache_free(net_cachep, net);
|
kmem_cache_free(net_cachep, net);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue