[IPV6]: Fix memory leak in cleanup_ipv6_mibs()
authorPavel Emelyanov <xemul@openvz.org>
Thu, 18 Oct 2007 02:30:40 +0000 (19:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2007 02:30:40 +0000 (19:30 -0700)
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>
net/ipv6/af_inet6.c

index bc929381fa46c59926266efde1a6702d2460f1e4..1b1caf3aa1c189d7ce57bf38d4276afa5d4c35c9 100644 (file)
@@ -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);
 }