diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-07-12 18:51:11 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-07-12 18:51:11 +0000 |
commit | 2f8292fd0f0d4f998a8d07123af9c41efea65952 (patch) | |
tree | 0deb094ba51f1b2d16e779a57c12f61dd21a1968 /sys/scsi/cd.c | |
parent | 9355adab6702f4798111e38a2e7e7be541270937 (diff) |
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
Diffstat (limited to 'sys/scsi/cd.c')
-rw-r--r-- | sys/scsi/cd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c index cecb73d9c11..0967cdf0623 100644 --- a/sys/scsi/cd.c +++ b/sys/scsi/cd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd.c,v 1.213 2013/11/01 17:36:19 krw Exp $ */ +/* $OpenBSD: cd.c,v 1.214 2014/07/12 18:50:25 tedu Exp $ */ /* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */ /* @@ -792,7 +792,7 @@ cdioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) lp = malloc(sizeof(*lp), M_TEMP, M_WAITOK); cdgetdisklabel(dev, sc, lp, 0); bcopy(lp, sc->sc_dk.dk_label, sizeof(*lp)); - free(lp, M_TEMP); + free(lp, M_TEMP, 0); break; case DIOCGPDINFO: |