summaryrefslogtreecommitdiffstats
path: root/libc/unistd/execlp.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/execlp.c
parent88e814e997c9bc4fd633583d4d6d4779c5b18cfb (diff)
downloaduClibc-alpine-614b87de55e550d7b07709124a38f23b2f54a35a.tar.bz2
uClibc-alpine-614b87de55e550d7b07709124a38f23b2f54a35a.tar.xz
Silly us. Don't try to free alloca'd memory.
-Erik
Diffstat (limited to 'libc/unistd/execlp.c')
-rw-r--r--libc/unistd/execlp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libc/unistd/execlp.c b/libc/unistd/execlp.c
index 1e2f6558d..923a2e22a 100644
--- a/libc/unistd/execlp.c
+++ b/libc/unistd/execlp.c
@@ -44,8 +44,5 @@ int execlp(__const char *file, __const char *arg, ...)
i = execvep(file, (char *const *) argv, __environ);
- if (argv != shortargv)
- free(argv);
-
return i;
}