summaryrefslogtreecommitdiffstats
path: root/sys/kern/exec_script.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/exec_script.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/exec_script.c')
-rw-r--r--sys/kern/exec_script.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/exec_script.c b/sys/kern/exec_script.c
index 6fab186676f..a8e327e3ba1 100644
--- a/sys/kern/exec_script.c
+++ b/sys/kern/exec_script.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_script.c,v 1.29 2014/07/08 17:19:25 deraadt Exp $ */
+/* $OpenBSD: exec_script.c,v 1.30 2014/07/12 18:43:32 tedu Exp $ */
/* $NetBSD: exec_script.c,v 1.13 1996/02/04 02:15:06 christos Exp $ */
/*
@@ -311,10 +311,10 @@ fail:
/* free the fake arg list, because we're not returning it */
if ((tmpsap = shellargp) != NULL) {
while (*tmpsap != NULL) {
- free(*tmpsap, M_EXEC);
+ free(*tmpsap, M_EXEC, 0);
tmpsap++;
}
- free(shellargp, M_EXEC);
+ free(shellargp, M_EXEC, 0);
}
/*