summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sensors.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_sensors.c')
-rw-r--r--sys/kern/kern_sensors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sensors.c b/sys/kern/kern_sensors.c
index 4a564e12a57..22855ed4886 100644
--- a/sys/kern/kern_sensors.c
+++ b/sys/kern/kern_sensors.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sensors.c,v 1.29 2014/09/14 14:17:25 jsg Exp $ */
+/* $OpenBSD: kern_sensors.c,v 1.30 2014/11/01 23:58:28 tedu Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -247,7 +247,7 @@ sensor_task_work(void *xst, void *arg)
rw_exit_write(&st->lock);
if (period == 0)
- free(st, M_DEVBUF, 0);
+ free(st, M_DEVBUF, sizeof(struct sensor_task));
else
timeout_add_sec(&st->timeout, period);
}