diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2008-02-27 12:06:38 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-27 12:06:38 -0800 |
commit | 3bdfe7ec08b4256121a8894cd978e74fcf7031d7 (patch) | |
tree | 734669177b809129106d819a9ad86fe21c6d72b4 /net | |
parent | b37d428b24ad38034f56b614de05686ba151b614 (diff) | |
download | linux-3bdfe7ec08b4256121a8894cd978e74fcf7031d7.tar.gz linux-3bdfe7ec08b4256121a8894cd978e74fcf7031d7.tar.bz2 linux-3bdfe7ec08b4256121a8894cd978e74fcf7031d7.zip |
[IPV6] SYSCTL: Fix possible memory leakage in error path.
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/sysctl_net_ipv6.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c index 408691b777c2..d6d3e68086f8 100644 --- a/net/ipv6/sysctl_net_ipv6.c +++ b/net/ipv6/sysctl_net_ipv6.c @@ -102,9 +102,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; err = 0; |