summaryrefslogtreecommitdiff
path: root/sys/kern/tty_endrun.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_endrun.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_endrun.c')
-rw-r--r--sys/kern/tty_endrun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty_endrun.c b/sys/kern/tty_endrun.c
index 9cba2d53550..a7d35401961 100644
--- a/sys/kern/tty_endrun.c
+++ b/sys/kern/tty_endrun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty_endrun.c,v 1.3 2010/04/12 12:57:52 tedu Exp $ */
+/* $OpenBSD: tty_endrun.c,v 1.4 2014/07/12 18:43:32 tedu Exp $ */
/*
* Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org>
@@ -155,7 +155,7 @@ endrunopen(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);
@@ -174,7 +174,7 @@ endrunclose(struct tty *tp, int flags, struct proc *p)
tp->t_line = TTYDISC; /* switch back to termios */
timeout_del(&np->endrun_tout);
sensordev_deinstall(&np->timedev);
- free(np, M_DEVBUF);
+ free(np, M_DEVBUF, 0);
tp->t_sc = NULL;
endrun_count--;
if (endrun_count == 0)