diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-10-17 19:30:40 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-10-17 19:30:40 -0700 |
commit | dc8a82ad285dcd2831feb2fd8f7b41ce1f82e243 (patch) | |
tree | fd5fa85ec9c799d179a747563031a2869664389b /net | |
parent | 0c2bef49764d0a5a404ae0bd65217f7dadbd1821 (diff) | |
download | kernel_samsung_aries-dc8a82ad285dcd2831feb2fd8f7b41ce1f82e243.zip kernel_samsung_aries-dc8a82ad285dcd2831feb2fd8f7b41ce1f82e243.tar.gz kernel_samsung_aries-dc8a82ad285dcd2831feb2fd8f7b41ce1f82e243.tar.bz2 |
[IPV6]: Fix memory leak in cleanup_ipv6_mibs()
The icmpv6msg mib statistics is not freed.
This is almost not critical for current kernel, since ipv6
module is unloadable, but this can happen on load error and
will happen every time we stop the network namespace (when
we have one, of course).
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: David L Stevens <dlstevens@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/af_inet6.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index bc92938..1b1caf3 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c @@ -747,6 +747,7 @@ static void cleanup_ipv6_mibs(void) { snmp_mib_free((void **)ipv6_statistics); snmp_mib_free((void **)icmpv6_statistics); + snmp_mib_free((void **)icmpv6msg_statistics); snmp_mib_free((void **)udp_stats_in6); snmp_mib_free((void **)udplite_stats_in6); } |