From 9bd3fb4c31da80b2bbee428020a55ee578b27a66 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 27 Aug 2015 05:49:24 +0000 Subject: simple size for free() --- sys/dev/onewire/owctr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/onewire/owctr.c b/sys/dev/onewire/owctr.c index d9092d61add..48b6d996e49 100644 --- a/sys/dev/onewire/owctr.c +++ b/sys/dev/onewire/owctr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: owctr.c,v 1.7 2015/03/14 03:38:48 jsg Exp $ */ +/* $OpenBSD: owctr.c,v 1.8 2015/08/27 05:49:23 deraadt Exp $ */ /* * Copyright (c) 2010 John L. Scarfone * @@ -211,7 +211,7 @@ owctr_update_counter(void *arg, int bank) } onewire_reset(sc->sc_onewire); - free(buf, M_DEVBUF, 0); + free(buf, M_DEVBUF, DS2423_COUNTER_BUFSZ); done: onewire_unlock(sc->sc_onewire); -- cgit v1.2.3