summaryrefslogtreecommitdiff
path: root/posix/execl.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/execl.c')
-rw-r--r--posix/execl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/posix/execl.c b/posix/execl.c
index 7d89192675..102d19d9af 100644
--- a/posix/execl.c
+++ b/posix/execl.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -50,6 +50,7 @@ execl (const char *path, const char *arg, ...)
{
if (argv != initial_argv)
free (argv);
+ va_end (args);
return -1;
}
if (argv == initial_argv)