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_subr.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_subr.c')
-rw-r--r-- | sys/kern/kern_subr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c index 2e3bacb3100..f0f216bc190 100644 --- a/sys/kern/kern_subr.c +++ b/sys/kern/kern_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_subr.c,v 1.37 2013/10/19 09:24:57 reyk Exp $ */ +/* $OpenBSD: kern_subr.c,v 1.38 2014/07/12 18:43:32 tedu Exp $ */ /* $NetBSD: kern_subr.c,v 1.15 1996/04/09 17:21:56 ragge Exp $ */ /* @@ -221,7 +221,7 @@ hook_disestablish(struct hook_desc_head *head, void *vhook) #endif hdp = vhook; TAILQ_REMOVE(head, hdp, hd_list); - free(hdp, M_DEVBUF); + free(hdp, M_DEVBUF, 0); } /* @@ -244,7 +244,7 @@ dohooks(struct hook_desc_head *head, int flags) TAILQ_REMOVE(head, hdp, hd_list); (*hdp->hd_fn)(hdp->hd_arg); if ((flags & HOOK_FREE) != 0) - free(hdp, M_DEVBUF); + free(hdp, M_DEVBUF, 0); } } } |