diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-09-01 05:46:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-09-01 05:46:01 +0000 |
commit | acddd99ce3b77a0464f1db538df363b90d734242 (patch) | |
tree | 2c8a7f64c3c61cfc990ef3e51cc7460a1966572e /sys/dev/ic | |
parent | 6552896c83d8e0c94ad668c1e07eec78a5035820 (diff) |
size for free()
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/cac.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/cac.c b/sys/dev/ic/cac.c index 1aedc02abdc..50f64e4f8cc 100644 --- a/sys/dev/ic/cac.c +++ b/sys/dev/ic/cac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cac.c,v 1.54 2014/12/19 07:23:57 deraadt Exp $ */ +/* $OpenBSD: cac.c,v 1.55 2015/09/01 05:46:00 deraadt Exp $ */ /* $NetBSD: cac.c,v 1.15 2000/11/08 19:20:35 ad Exp $ */ /* @@ -942,7 +942,8 @@ cac_create_sensors(struct cac_softc *sc) return (0); bad: - free(sc->sc_sensors, M_DEVBUF, 0); + free(sc->sc_sensors, M_DEVBUF, + sc->sc_nunits * sizeof(struct ksensor)); return (1); } |