about summary refs log tree commit diff
path: root/src/process/execl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process/execl.c')
-rw-r--r--src/process/execl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/process/execl.c b/src/process/execl.c
index 327d78b2..5ee5c81e 100644
--- a/src/process/execl.c
+++ b/src/process/execl.c
@@ -16,6 +16,7 @@ int execl(const char *path, const char *argv0, ...)
 		for (i=1; i<argc; i++)
 			argv[i] = va_arg(ap, char *);
 		argv[i] = NULL;
+		va_end(ap);
 		return execv(path, argv);
 	}
 }