summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/pred.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-01-14 01:47:50 +0000
committerbrian <brian@FreeBSD.org>1998-01-14 01:47:50 +0000
commitf2896d69aa5e05461cb9e3a2a3b806868191309a (patch)
tree9c41f8b5a3d04e1ab534487bc145c319632d427a /usr.sbin/ppp/pred.c
parent07d18a334d84b8ec52d20a36f1ab6f4e7d9d9d94 (diff)
downloadFreeBSD-src-f2896d69aa5e05461cb9e3a2a3b806868191309a.zip
FreeBSD-src-f2896d69aa5e05461cb9e3a2a3b806868191309a.tar.gz
Free our input mbuf when the FCS is good (oops, memory leak).
Diffstat (limited to 'usr.sbin/ppp/pred.c')
-rw-r--r--usr.sbin/ppp/pred.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/pred.c b/usr.sbin/ppp/pred.c
index da95b05..d5ff543 100644
--- a/usr.sbin/ppp/pred.c
+++ b/usr.sbin/ppp/pred.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: pred.c,v 1.19 1997/12/21 12:11:08 brian Exp $
*/
#include <sys/param.h>
@@ -279,6 +279,7 @@ Pred1Input(u_short *proto, struct mbuf *bp)
wp->cnt -= 2;
*proto = (*proto << 8) | *pp++;
}
+ pfree(bp);
return wp;
} else {
LogDumpBp(LogHDLC, "Bad FCS", wp);
OpenPOWER on IntegriCloud