netfilter: Fix memory leak in nf_register_net_hook
A message that is not in the archive (sent off-list or not yet received): 20150718075610.GD5422@mwanda
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Eric W. Biederman
In the rare case that when it is a attempted to use a per network device netfilter hook and the network device does not exist the newly allocated structure can leak.
Be a good citizen and free the newly allocated structure in the error handling code.
Applied.