Skip to content

Commit

Permalink
netns: fix net_generic array leak
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Oct 15, 2008
1 parent 3497b2f commit 4ef079c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/net_namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static void net_free(struct net *net)
return;
}
#endif

kfree(net->gen);
kmem_cache_free(net_cachep, net);
}

Expand Down

0 comments on commit 4ef079c

Please sign in to comment.