Fixed mbuf leak possibility.
This commit is contained in:
parent
e3731ae5b2
commit
e7b1f54727
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ip6_mroute.c,v 1.99 2010/07/27 13:59:40 jakllsch Exp $ */
|
||||
/* $NetBSD: ip6_mroute.c,v 1.100 2010/10/14 03:34:42 oki Exp $ */
|
||||
/* $KAME: ip6_mroute.c,v 1.49 2001/07/25 09:21:18 jinmei Exp $ */
|
||||
|
||||
/*
|
||||
@ -117,7 +117,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip6_mroute.c,v 1.99 2010/07/27 13:59:40 jakllsch Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip6_mroute.c,v 1.100 2010/10/14 03:34:42 oki Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#include "opt_mrouting.h"
|
||||
@ -567,7 +567,7 @@ ip6_mrouter_done(void)
|
||||
for (rte = rt->mf6c_stall; rte != NULL; ) {
|
||||
struct rtdetq *n = rte->next;
|
||||
|
||||
m_free(rte->m);
|
||||
m_freem(rte->m);
|
||||
free(rte, M_MRTABLE);
|
||||
rte = n;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user