artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
989edf2
)
provide size to free(9)
author
deraadt
<deraadt@openbsd.org>
Mon, 3 Apr 2017 16:10:00 +0000
(16:10 +0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 3 Apr 2017 16:10:00 +0000
(16:10 +0000)
sys/dev/onewire/onewire.c
patch
|
blob
|
history
diff --git
a/sys/dev/onewire/onewire.c
b/sys/dev/onewire/onewire.c
index
e7ab03d
..
679bcd9
100644
(file)
--- a/
sys/dev/onewire/onewire.c
+++ b/
sys/dev/onewire/onewire.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: onewire.c,v 1.1
6 2014/09/14 14:17:25 jsg Exp $
*/
+/* $OpenBSD: onewire.c,v 1.1
7 2017/04/03 16:10:00 deraadt Exp $
*/
/*
* Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org>
@@
-493,7
+493,7
@@
out:
if (d->d_dev != NULL)
config_detach(d->d_dev, DETACH_FORCE);
TAILQ_REMOVE(&sc->sc_devs, d, d_list);
- free(d, M_DEVBUF,
0
);
+ free(d, M_DEVBUF,
sizeof *d
);
}
}
}