summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-08-27 18:54:02 +0000
committerderaadt <deraadt@openbsd.org>2015-08-27 18:54:02 +0000
commit17d22f031777806680603af3e13d0f4265c9b150 (patch)
tree42fb4a7689a0b24962fa6e90756bd8fcec26912a /sys
parentsizes for free() (diff)
downloadwireguard-openbsd-17d22f031777806680603af3e13d0f4265c9b150.tar.xz
wireguard-openbsd-17d22f031777806680603af3e13d0f4265c9b150.zip
fairly simple size for free()
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/vscsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vscsi.c b/sys/dev/vscsi.c
index b3a9d0208fe..6c6dcf143e1 100644
--- a/sys/dev/vscsi.c
+++ b/sys/dev/vscsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vscsi.c,v 1.38 2015/03/14 03:38:46 jsg Exp $ */
+/* $OpenBSD: vscsi.c,v 1.39 2015/08/27 18:54:02 deraadt Exp $ */
/*
* Copyright (c) 2008 David Gwynne <dlg@openbsd.org>
@@ -530,7 +530,7 @@ vscsi_devevent_task(void *xdt)
gone:
device_unref(&sc->sc_dev);
- free(dt, M_TEMP, 0);
+ free(dt, M_TEMP, sizeof(*dt));
}
int