Commit dc8a82ad authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by David S. Miller

[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: default avatarPavel Emelyanov <xemul@openvz.org>
Acked-by: default avatarDavid L Stevens <dlstevens@us.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0c2bef49
...@@ -747,6 +747,7 @@ static void cleanup_ipv6_mibs(void) ...@@ -747,6 +747,7 @@ static void cleanup_ipv6_mibs(void)
{ {
snmp_mib_free((void **)ipv6_statistics); snmp_mib_free((void **)ipv6_statistics);
snmp_mib_free((void **)icmpv6_statistics); snmp_mib_free((void **)icmpv6_statistics);
snmp_mib_free((void **)icmpv6msg_statistics);
snmp_mib_free((void **)udp_stats_in6); snmp_mib_free((void **)udp_stats_in6);
snmp_mib_free((void **)udplite_stats_in6); snmp_mib_free((void **)udplite_stats_in6);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment