summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-06-15 23:00:24 (GMT)
committerGitHub <noreply@github.com>2018-06-15 23:00:24 (GMT)
commitba7970fd0aa145975a7651806f826c4c1b33c066 (patch)
treefdd87538e8f6d80c359914320ee3d3d438febfae
parent508568764593dca3844a51c10f1493413a51d66f (diff)
downloadcpython-ba7970fd0aa145975a7651806f826c4c1b33c066.zip
cpython-ba7970fd0aa145975a7651806f826c4c1b33c066.tar.gz
cpython-ba7970fd0aa145975a7651806f826c4c1b33c066.tar.bz2
Add missing va_end() calls in PC/launcher.c (GH-7690)
(cherry picked from commit 3a6d752e35ad17fc00bc77b85364b1c599f4e0fe) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
-rw-r--r--PC/launcher.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/launcher.c b/PC/launcher.c
index d717a7e..417dca7 100644
--- a/PC/launcher.c
+++ b/PC/launcher.c
@@ -61,6 +61,7 @@ debug(wchar_t * format, ...)
if (log_fp != NULL) {
va_start(va, format);
vfwprintf_s(log_fp, format, va);
+ va_end(va);
}
}
@@ -83,6 +84,7 @@ error(int rc, wchar_t * format, ... )
va_start(va, format);
len = _vsnwprintf_s(message, MSGSIZE, _TRUNCATE, format, va);
+ va_end(va);
if (rc == 0) { /* a Windows error */
winerror(GetLastError(), win_message, MSGSIZE);