From: thib Date: Sat, 9 Aug 2008 11:25:05 +0000 (+0000) Subject: turn an MFREE() into an m_free() and garbage collect an X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=db12bc822a40dfdb0c4a3b3cd1bce4e067be97fb;p=openbsd turn an MFREE() into an m_free() and garbage collect an unused mbuf pointer. OK claudio@ --- diff --git a/sys/net/if_pppoe.c b/sys/net/if_pppoe.c index 4d720fc57dc..548c5546008 100644 --- a/sys/net/if_pppoe.c +++ b/sys/net/if_pppoe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pppoe.c,v 1.22 2008/06/26 05:42:20 ray Exp $ */ +/* $OpenBSD: if_pppoe.c,v 1.23 2008/08/09 11:25:05 thib Exp $ */ /* $NetBSD: if_pppoe.c,v 1.51 2003/11/28 08:56:48 keihan Exp $ */ /* @@ -1029,9 +1029,7 @@ pppoe_get_mbuf(size_t len) if (len + sizeof(struct ether_header) > MHLEN) { MCLGET(m, M_DONTWAIT); if ((m->m_flags & M_EXT) == 0) { - struct mbuf *n; - - MFREE(m, n); + m_free(m); return (NULL); } }