From a6d9312c4da740437752b8a73102bf3ca4e3bb3e Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 7 Jul 2015 12:52:51 +0200 Subject: Add missing va_end calls (bug 17243) --- posix/execl.c | 1 + posix/execle.c | 1 + posix/execlp.c | 1 + 3 files changed, 3 insertions(+) (limited to 'posix') diff --git a/posix/execl.c b/posix/execl.c index 7d89192675..192b492a8b 100644 --- a/posix/execl.c +++ b/posix/execl.c @@ -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) diff --git a/posix/execle.c b/posix/execle.c index dff95b2c1f..33cd09f8a3 100644 --- a/posix/execle.c +++ b/posix/execle.c @@ -48,6 +48,7 @@ execle (const char *path, const char *arg, ...) { if (argv != initial_argv) free (argv); + va_end (args); return -1; } if (argv == initial_argv) diff --git a/posix/execlp.c b/posix/execlp.c index 5e45de967a..7fc2740519 100644 --- a/posix/execlp.c +++ b/posix/execlp.c @@ -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) -- cgit 1.4.1