summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2018-06-15 22:39:04 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2018-06-15 22:39:04 (GMT)
commit3a6d752e35ad17fc00bc77b85364b1c599f4e0fe (patch)
treee0e094e99eb6a41eac6cab35cfafb8a3873cf20c /PC
parentee5ef309c7e2daef1248730145408f700732c42e (diff)
downloadcpython-3a6d752e35ad17fc00bc77b85364b1c599f4e0fe.zip
cpython-3a6d752e35ad17fc00bc77b85364b1c599f4e0fe.tar.gz
cpython-3a6d752e35ad17fc00bc77b85364b1c599f4e0fe.tar.bz2
Add missing va_end() calls in PC/launcher.c (GH-7690)
Diffstat (limited to 'PC')
-rw-r--r--PC/launcher.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/launcher.c b/PC/launcher.c
index d43eb92..455f42b 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);