diff options
author | 2014-07-12 18:43:32 +0000 | |
---|---|---|
committer | 2014-07-12 18:43:32 +0000 | |
commit | 9e8577e7fffeab9111fc01d9e1c7ca42905be86a (patch) | |
tree | c47f9922e2223e66aa9394467812c88df740cff4 /sys/kern/kern_malloc.c | |
parent | Remove extra parenthesis. (diff) | |
download | wireguard-openbsd-9e8577e7fffeab9111fc01d9e1c7ca42905be86a.tar.xz wireguard-openbsd-9e8577e7fffeab9111fc01d9e1c7ca42905be86a.zip |
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/kern/kern_malloc.c')
-rw-r--r-- | sys/kern/kern_malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 83936778a0d..496775f6697 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_malloc.c,v 1.112 2014/07/10 22:16:48 tedu Exp $ */ +/* $OpenBSD: kern_malloc.c,v 1.113 2014/07/12 18:43:32 tedu Exp $ */ /* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */ /* @@ -354,7 +354,7 @@ out: * Free a block of memory allocated by malloc. */ void -free(void *addr, int type) +free(void *addr, int type, size_t fauxsize) { struct kmembuckets *kbp; struct kmemusage *kup; |