diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-06-15 23:00:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-15 23:00:24 (GMT) |
commit | ba7970fd0aa145975a7651806f826c4c1b33c066 (patch) | |
tree | fdd87538e8f6d80c359914320ee3d3d438febfae /PC | |
parent | 508568764593dca3844a51c10f1493413a51d66f (diff) | |
download | cpython-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>
Diffstat (limited to 'PC')
-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 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); |