Skip to content

Commit

Permalink
[IPV6] SYSCTL: Fix possible memory leakage in error path.
Browse files Browse the repository at this point in the history
In error path, we do need to free memory just allocated.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Feb 27, 2008
1 parent b37d428 commit 3bdfe7e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/ipv6/sysctl_net_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ static int ipv6_sysctl_net_init(struct net *net)

net->ipv6.sysctl.table = register_net_sysctl_table(net, net_ipv6_ctl_path,
ipv6_table);
if (!net->ipv6.sysctl.table)
return -ENOMEM;

if (!net->ipv6.sysctl.table)
goto out_ipv6_icmp_table;

Expand Down

0 comments on commit 3bdfe7e

Please sign in to comment.