summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2019-02-01 17:23:09 +0000
committeranton <anton@cvs.openbsd.org>2019-02-01 17:23:09 +0000
commite5e67a945cee4ecc4b9e31d24c655d6f30ef074d (patch)
tree08ab96ef74a407b604a4969c70d68c24f453320f /sys
parente8824be0609655e14b34aa8c3eb6b41c22482ef7 (diff)
free size for wscons_event; ok deraadt@ visa@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/wscons/wsevent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wscons/wsevent.c b/sys/dev/wscons/wsevent.c
index 993a33e45ec..be015534317 100644
--- a/sys/dev/wscons/wsevent.c
+++ b/sys/dev/wscons/wsevent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsevent.c,v 1.18 2018/11/19 19:19:24 anton Exp $ */
+/* $OpenBSD: wsevent.c,v 1.19 2019/02/01 17:23:08 anton Exp $ */
/* $NetBSD: wsevent.c,v 1.16 2003/08/07 16:31:29 agc Exp $ */
/*
@@ -127,7 +127,7 @@ wsevent_fini(struct wseventvar *ev)
#endif
return;
}
- free(ev->q, M_DEVBUF, 0);
+ free(ev->q, M_DEVBUF, WSEVENT_QSIZE * sizeof(struct wscons_event));
ev->q = NULL;
sigio_free(&ev->sigio);