summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-08-26 22:29:39 +0000
committerderaadt <deraadt@openbsd.org>2015-08-26 22:29:39 +0000
commit688f9b10a3d9bcfb60863e6b609ee636de2f95b8 (patch)
treec829188ed275ea8901ecd34fae3a28d94a3cba91
parenttrivial size to free() (diff)
downloadwireguard-openbsd-688f9b10a3d9bcfb60863e6b609ee636de2f95b8.tar.xz
wireguard-openbsd-688f9b10a3d9bcfb60863e6b609ee636de2f95b8.zip
trivial size to free()
-rw-r--r--sys/dev/ata/wd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c
index ce864209ea3..634cb433f81 100644
--- a/sys/dev/ata/wd.c
+++ b/sys/dev/ata/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.118 2015/08/17 15:36:29 krw Exp $ */
+/* $OpenBSD: wd.c,v 1.119 2015/08/26 22:29:39 deraadt Exp $ */
/* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */
/*
@@ -781,7 +781,7 @@ wdioctl(dev_t dev, u_long xfer, caddr_t addr, int flag, struct proc *p)
lp = malloc(sizeof(*lp), M_TEMP, M_WAITOK);
wdgetdisklabel(dev, wd, lp, 0);
bcopy(lp, wd->sc_dk.dk_label, sizeof(*lp));
- free(lp, M_TEMP, 0);
+ free(lp, M_TEMP, sizeof(*lp));
goto exit;
case DIOCGPDINFO: