summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2018-04-22 10:02:14 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2018-04-22 10:02:14 +0000
commit1ae5cd6d754f3910a6d851e565cbfeb5f0ccf8ca (patch)
treec89c4f748951f6e13a1241694206624a2c30e73c
parent3af45cb31574b17091243a1362500d7ecd08c6f1 (diff)
Use free(9) size argument in azalia_codec_select_dacs(). From
Michael W. Bombardieri. Thanks.
-rw-r--r--sys/dev/pci/azalia.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c
index a370a696a80..b403506d751 100644
--- a/sys/dev/pci/azalia.c
+++ b/sys/dev/pci/azalia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: azalia.c,v 1.243 2018/04/22 09:51:27 ratchov Exp $ */
+/* $OpenBSD: azalia.c,v 1.244 2018/04/22 10:02:13 ratchov Exp $ */
/* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */
/*-
@@ -2119,7 +2119,7 @@ azalia_codec_select_dacs(codec_t *this)
}
}
- free(convs, M_DEVBUF, 0);
+ free(convs, M_DEVBUF, this->na_dacs * sizeof(nid_t));
return(err);
}