diff options
author | 2015-08-28 00:03:53 +0000 | |
---|---|---|
committer | 2015-08-28 00:03:53 +0000 | |
commit | bae2bd509caafb58e32eb30678e33df546f85cbd (patch) | |
tree | e2e5d64033fc6209583f14e91349f7b131de68f5 /sys/dev/ic/ac97.c | |
parent | Update: add include/libdrm, sort include/EGL, add share/util-macros (diff) | |
download | wireguard-openbsd-bae2bd509caafb58e32eb30678e33df546f85cbd.tar.xz wireguard-openbsd-bae2bd509caafb58e32eb30678e33df546f85cbd.zip |
fairly simple sizes for free(); ok tedu
Diffstat (limited to 'sys/dev/ic/ac97.c')
-rw-r--r-- | sys/dev/ic/ac97.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ac97.c b/sys/dev/ic/ac97.c index c3429f50f97..7c0bc2dbee7 100644 --- a/sys/dev/ic/ac97.c +++ b/sys/dev/ic/ac97.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ac97.c,v 1.80 2015/05/11 06:46:21 ratchov Exp $ */ +/* $OpenBSD: ac97.c,v 1.81 2015/08/28 00:03:53 deraadt Exp $ */ /* * Copyright (c) 1999, 2000 Constantine Sapuntzakis @@ -815,7 +815,7 @@ ac97_attach(struct ac97_host_if *host_if) as->host_if = host_if; if ((error = host_if->attach(host_if->arg, &as->codec_if))) { - free(as, M_DEVBUF, 0); + free(as, M_DEVBUF, sizeof(*as)); return (error); } |