mirror of
https://github.com/python/cpython
synced 2024-09-05 08:17:45 +00:00
Add missing va_end() calls in PC/launcher.c (GH-7690)
This commit is contained in:
parent
ee5ef309c7
commit
3a6d752e35
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue