Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2009-10-14 08:17:05 +0400
committerEric Blake <eblake@redhat.com>2009-10-14 08:17:05 +0400
commit4cd31fc8f981c0287c9411e96a66520ce2568124 (patch)
treeb16143b3517dab481b72d2b3c90c5a56e1cd0d14 /winsup/cygwin/fork.cc
parente4ba1cf29eaef305f8c6edd3f374c85af464bbea (diff)
Consistently use va_end.
* external.cc (cygwin_internal): Use va_end. * fork.cc (child_copy): Likewise. * libc/bsdlib.cc (warn, warnx, err, errx): Likewise. * pinfo.cc (commune_request): Likewise. * strace.cc (strace::prntf, strace_printf): Likewise.
Diffstat (limited to 'winsup/cygwin/fork.cc')
-rw-r--r--winsup/cygwin/fork.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc
index 49ff2e1ab..ac2e9ca5e 100644
--- a/winsup/cygwin/fork.cc
+++ b/winsup/cygwin/fork.cc
@@ -758,10 +758,12 @@ child_copy (HANDLE hp, bool write, ...)
}
}
+ va_end (args);
debug_printf ("done");
return true;
err:
+ va_end (args);
TerminateProcess (hp, 1);
set_errno (EAGAIN);
return false;