diff options
| author | 2015-09-01 05:46:00 +0000 | |
|---|---|---|
| committer | 2015-09-01 05:46:00 +0000 | |
| commit | d26ab8054f50f0ceff4af15d7014c9a233bfe881 (patch) | |
| tree | 02bda53595cfb1845055062d82067b74fa2041a5 | |
| parent | In static binaries, invoke kbind() once to disable it. (diff) | |
| download | wireguard-openbsd-d26ab8054f50f0ceff4af15d7014c9a233bfe881.tar.xz wireguard-openbsd-d26ab8054f50f0ceff4af15d7014c9a233bfe881.zip | |
size for free()
| -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); } |
