summaryrefslogtreecommitdiff
path: root/libc/unistd/execle.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-11-24 06:19:23 +0000
committerEric Andersen <andersen@codepoet.org>2001-11-24 06:19:23 +0000
commit614b87de55e550d7b07709124a38f23b2f54a35a (patch)
tree29714125a1d3abeb50911b0d9c5fb9e623de2fca /libc/unistd/execle.c
parent88e814e997c9bc4fd633583d4d6d4779c5b18cfb (diff)
Silly us. Don't try to free alloca'd memory.
-Erik
Diffstat (limited to 'libc/unistd/execle.c')
-rw-r--r--libc/unistd/execle.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libc/unistd/execle.c b/libc/unistd/execle.c
index 14c7a0bfc..4003ee6be 100644
--- a/libc/unistd/execle.c
+++ b/libc/unistd/execle.c
@@ -46,8 +46,5 @@ int execle(const char *file, const char *arg, ...)
i = execvep(file, (char *const *) argv, (char *const *) envp);
- if (argv != shortargv)
- free(argv);
-
return i;
}