ipv6_mbuf_memory_leak.txt

logan1, 10/04/2013 11:43 AM

Download (339 Bytes)

 
1
--- ip6_mroute.c.orig	2013-10-04 11:37:53.000000000 -0700
2
+++ ip6_mroute.c	2013-10-04 11:38:14.000000000 -0700
3
@@ -475,7 +475,7 @@ ip6_mrouter_done(void)
4
 			for (rte = rt->mf6c_stall; rte != NULL; ) {
5
 				struct rtdetq *n = rte->next;
6
 
7
-				m_free(rte->m);
8
+				m_freem(rte->m);
9
 				kfree(rte, M_MRTABLE);
10
 				rte = n;
11
 			}