summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/pred.c
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1998-01-14 01:48:20 +0000
committerbrian <brian@cvs.openbsd.org>1998-01-14 01:48:20 +0000
commitb58e1380ac2fab448593a4a7c1f316b312e09c6b (patch)
treeea05011658c7dad25d0fa62c8c9a705a0a416f35 /usr.sbin/ppp/pred.c
parenta1b49f10b0ae596cd397096dff8f8557d69dda70 (diff)
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 b80663705f9..85b751d5fa0 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: pred.c,v 1.3 1997/12/21 14:27:11 brian Exp $
+ * $Id: pred.c,v 1.4 1998/01/14 01:48:19 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);