aboutsummaryrefslogtreecommitdiffstats
path: root/src/unistd/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/exec.c')
-rw-r--r--src/unistd/exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unistd/exec.c b/src/unistd/exec.c
index 1408cbf..70b54f6 100644
--- a/src/unistd/exec.c
+++ b/src/unistd/exec.c
@@ -60,6 +60,7 @@ static void vexec(const char* file, va_list argv, int fetch_envp, int use_path)
for (i = 0; i < n; i++)
argv_[i] = va_arg(argv, char*);
+ va_end(args);
(void)(use_path ? execvpe : execve)(file, argv_, envp);
}