free the mbuf before bailing out.
ok claudio@
-/* $OpenBSD: uipc_mbuf.c,v 1.90 2008/06/11 02:46:34 henning Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.91 2008/08/08 08:54:08 thib Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
if (m == NULL)
goto bad;
MCLGET(m, M_DONTWAIT);
- if ((m->m_flags & M_EXT) == 0)
+ if ((m->m_flags & M_EXT) == 0) {
+ m_free(m);
goto bad;
+ }
m->m_len = 0;
if (n->m_flags & M_PKTHDR) {
/* Too many adverse side effects. */