From patchwork Wed Sep 16 12:53:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 8723 X-Patchwork-Delegate: schwab@linux-m68k.org Received: (qmail 93508 invoked by alias); 16 Sep 2015 12:53:08 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 93498 invoked by uid 89); 16 Sep 2015 12:53:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_40, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx2.suse.de From: Andreas Schwab To: libc-alpha@sourceware.org Subject: [PATCH] Add missing va_end calls (bug 17243) X-Yow: The FALAFEL SANDWICH lands on my HEAD and I become a VEGETARIAN... Date: Wed, 16 Sep 2015 14:53:03 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 va_end is a no-op in gcc, so this doesn't affect the generated code in any way. Installed as obvious. Andreas. [BZ #17243] * posix/execl.c (execl): Add missing va_end. * posix/execle.c (execle): Likewise. * posix/execlp.c (execlp): Likewise. diff --git a/posix/execl.c b/posix/execl.c index 7d89192..192b492 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 dff95b2..33cd09f 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 5e45de9..7fc2740 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)