summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_process.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-07-12 18:43:32 +0000
committertedu <tedu@openbsd.org>2014-07-12 18:43:32 +0000
commit9e8577e7fffeab9111fc01d9e1c7ca42905be86a (patch)
treec47f9922e2223e66aa9394467812c88df740cff4 /sys/kern/sys_process.c
parentRemove extra parenthesis. (diff)
downloadwireguard-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/sys_process.c')
-rw-r--r--sys/kern/sys_process.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
index 56cf0e0ea19..53d7efec5ad 100644
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_process.c,v 1.62 2014/07/11 08:18:31 guenther Exp $ */
+/* $OpenBSD: sys_process.c,v 1.63 2014/07/12 18:43:32 tedu Exp $ */
/* $NetBSD: sys_process.c,v 1.55 1996/05/15 06:17:47 tls Exp $ */
/*-
@@ -581,7 +581,7 @@ sys_ptrace(struct proc *p, void *v, register_t *retval)
if (error == 0) {
error = process_write_regs(t, regs);
}
- free(regs, M_TEMP);
+ free(regs, M_TEMP, 0);
return (error);
case PT_GETREGS:
KASSERT((p->p_flag & P_SYSTEM) == 0);
@@ -593,7 +593,7 @@ sys_ptrace(struct proc *p, void *v, register_t *retval)
if (error == 0)
error = copyout(regs,
SCARG(uap, addr), sizeof (*regs));
- free(regs, M_TEMP);
+ free(regs, M_TEMP, 0);
return (error);
#ifdef PT_SETFPREGS
case PT_SETFPREGS:
@@ -606,7 +606,7 @@ sys_ptrace(struct proc *p, void *v, register_t *retval)
if (error == 0) {
error = process_write_fpregs(t, fpregs);
}
- free(fpregs, M_TEMP);
+ free(fpregs, M_TEMP, 0);
return (error);
#endif
#ifdef PT_GETFPREGS
@@ -620,7 +620,7 @@ sys_ptrace(struct proc *p, void *v, register_t *retval)
if (error == 0)
error = copyout(fpregs,
SCARG(uap, addr), sizeof(*fpregs));
- free(fpregs, M_TEMP);
+ free(fpregs, M_TEMP, 0);
return (error);
#endif
#ifdef PT_SETXMMREGS
@@ -634,7 +634,7 @@ sys_ptrace(struct proc *p, void *v, register_t *retval)
if (error == 0) {
error = process_write_xmmregs(t, xmmregs);
}
- free(xmmregs, M_TEMP);
+ free(xmmregs, M_TEMP, 0);
return (error);
#endif
#ifdef PT_GETXMMREGS
@@ -648,7 +648,7 @@ sys_ptrace(struct proc *p, void *v, register_t *retval)
if (error == 0)
error = copyout(xmmregs,
SCARG(uap, addr), sizeof(*xmmregs));
- free(xmmregs, M_TEMP);
+ free(xmmregs, M_TEMP, 0);
return (error);
#endif
#ifdef PT_WCOOKIE