summaryrefslogtreecommitdiff
path: root/sys/net/ppp_tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/ppp_tty.c')
-rw-r--r--sys/net/ppp_tty.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/ppp_tty.c b/sys/net/ppp_tty.c
index 635e7adbf698..3838286f5b36 100644
--- a/sys/net/ppp_tty.c
+++ b/sys/net/ppp_tty.c
@@ -549,7 +549,6 @@ pppasyncstart(sc)
register int len;
register u_char *start, *stop, *cp;
int n, ndone, done, idle;
- struct mbuf *m2;
int s;
idle = 0;
@@ -687,8 +686,7 @@ pppasyncstart(sc)
}
/* Finished with this mbuf; free it and move on. */
- MFREE(m, m2);
- m = m2;
+ m = m_free(m);
if (m == NULL) {
/* Finished a packet */
break;