Skip to contentSkip to conversation

netfilter: Fix memory leak in nf_register_net_hook

PATCH Pablo Neira Ayuso 1 participant 1 message Jul 20, 2015 2 messages not in the archive netfilter

lore
Share & tools
lore

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]

Pablo Neira Ayuso

author maintainer Applied
#2 lore raw
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.