Fix memory leak in cleanup_ipv6_mibs()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
---
net/ipv6/af_inet6.c +1 -0
@@ -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); }
Acked-by David L Stevens <[email protected]>
Quoted 20 lines
Signed-off-by Pavel Emelyanov <[email protected]>---
net/ipv6/af_inet6.c +1
-1@@ -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); } -To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: David Stevens <[email protected]>
Date: Wed, 17 Oct 2007 09:23:39 -0700
Quoted 3 lines
Acked-by David L Stevens <[email protected]>Quoted 1 line
Signed-off-by Pavel Emelyanov <[email protected]>
Applied, thanks.