diff options
Diffstat (limited to 'posix/execlp.c')
-rw-r--r-- | posix/execlp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/posix/execlp.c b/posix/execlp.c index 5e45de967a..6700994a5b 100644 --- a/posix/execlp.c +++ b/posix/execlp.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 @@ execlp (const char *file, const char *arg, ...) { if (argv != initial_argv) free (argv); + va_end (args); return -1; } if (argv == initial_argv) |