All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix memory leak in cleanup_ipv6_mibs()
@ 2007-10-17 14:04 Pavel Emelyanov
  2007-10-17 16:23 ` David Stevens
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Emelyanov @ 2007-10-17 14:04 UTC (permalink / raw)
  To: David Miller; +Cc: Linux Netdev List, devel

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>

---

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);
 }

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-18  2:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-17 14:04 [PATCH] Fix memory leak in cleanup_ipv6_mibs() Pavel Emelyanov
2007-10-17 16:23 ` David Stevens
2007-10-18  2:30   ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.