Fix mbuf leak.

Submitted by:	Loganaden Velvindron <logan elandsys.com>
Obtained from:	NetBSD
Approved by:	re (kib)
This commit is contained in:
Gleb Smirnoff 2013-10-07 12:07:40 +00:00
parent 56f0ad0dcc
commit 491b520174

View File

@ -616,7 +616,7 @@ X_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_MRTABLE6);
rte = n;
}