Fix m_freem_vec() to actually traverse the mbuf chain. This avoids

double free's and an infinite loop.

CID:		1834
Found by:	Coverity Prevent (tm)
This commit is contained in:
John Baldwin 2007-04-11 13:47:24 +00:00
parent 4796ce4956
commit e403490aa6

View File

@ -135,6 +135,7 @@ m_freem_vec(struct mbuf *m)
mb_free_ext(m);
else
uma_zfree(zone_mbuf, m);
m = n;
}
}