summaryrefslogtreecommitdiff
path: root/sys/kern/tty_nmea.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-07-12 18:44:44 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-07-12 18:44:44 +0000
commit48b6cac396e42c57b5037f5a67d6cd7afb1733d6 (patch)
tree29d721c60c102e5fb6ed78e8ad45bbda321c951f /sys/kern/tty_nmea.c
parenta29a93ecbd0d69878182d5959b330ae5badcadc7 (diff)
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
Diffstat (limited to 'sys/kern/tty_nmea.c')
-rw-r--r--sys/kern/tty_nmea.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty_nmea.c b/sys/kern/tty_nmea.c
index 4b0c84926f8..9bf5c4ca05f 100644
--- a/sys/kern/tty_nmea.c
+++ b/sys/kern/tty_nmea.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty_nmea.c,v 1.41 2014/03/21 21:54:14 andre Exp $ */
+/* $OpenBSD: tty_nmea.c,v 1.42 2014/07/12 18:43:32 tedu Exp $ */
/*
* Copyright (c) 2006, 2007, 2008 Marc Balmer <mbalmer@openbsd.org>
@@ -135,7 +135,7 @@ nmeaopen(dev_t dev, struct tty *tp, struct proc *p)
error = linesw[TTYDISC].l_open(dev, tp, p);
if (error) {
- free(np, M_DEVBUF);
+ free(np, M_DEVBUF, 0);
tp->t_sc = NULL;
} else {
sensordev_install(&np->timedev);
@@ -152,7 +152,7 @@ nmeaclose(struct tty *tp, int flags, struct proc *p)
tp->t_line = TTYDISC; /* switch back to termios */
timeout_del(&np->nmea_tout);
sensordev_deinstall(&np->timedev);
- free(np, M_DEVBUF);
+ free(np, M_DEVBUF, 0);
tp->t_sc = NULL;
nmea_count--;
if (nmea_count == 0)