summaryrefslogtreecommitdiff
path: root/posix/execlp.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-09 19:34:06 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-09 19:34:06 +0200
commit6772d640a4f4874166a61f1859e1660a2913a89d (patch)
tree839fea4d5dcefab75577cecb563ccad4234eb953 /posix/execlp.c
parentf98906bbb57cb495b4501afc5f18604ef3a94e2a (diff)
parent7bb5f8a836b916d6ebf7b6921b136e99cea2442d (diff)
Merge commit 'refs/top-bases/t/hurdsig-fixes' into t/hurdsig-fixes
Diffstat (limited to 'posix/execlp.c')
-rw-r--r--posix/execlp.c3
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)