diff options
author | Zackery Spytz <zspytz@gmail.com> | 2018-06-15 22:39:04 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2018-06-15 22:39:04 (GMT) |
commit | 3a6d752e35ad17fc00bc77b85364b1c599f4e0fe (patch) | |
tree | e0e094e99eb6a41eac6cab35cfafb8a3873cf20c | |
parent | ee5ef309c7e2daef1248730145408f700732c42e (diff) | |
download | cpython-3a6d752e35ad17fc00bc77b85364b1c599f4e0fe.zip cpython-3a6d752e35ad17fc00bc77b85364b1c599f4e0fe.tar.gz cpython-3a6d752e35ad17fc00bc77b85364b1c599f4e0fe.tar.bz2 |
Add missing va_end() calls in PC/launcher.c (GH-7690)
-rw-r--r-- | PC/launcher.c | 2 |
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); |