Skip to content

Commit d9a8c82

Browse files
Add missing va_end() calls in PC/launcher.c (GH-7690)
(cherry picked from commit 3a6d752) Co-authored-by: Zackery Spytz <[email protected]>
1 parent 684bc3d commit d9a8c82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PC/launcher.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ debug(wchar_t * format, ...)
6161
if (log_fp != NULL) {
6262
va_start(va, format);
6363
vfwprintf_s(log_fp, format, va);
64+
va_end(va);
6465
}
6566
}
6667

@@ -83,6 +84,7 @@ error(int rc, wchar_t * format, ... )
8384

8485
va_start(va, format);
8586
len = _vsnwprintf_s(message, MSGSIZE, _TRUNCATE, format, va);
87+
va_end(va);
8688

8789
if (rc == 0) { /* a Windows error */
8890
winerror(GetLastError(), win_message, MSGSIZE);

0 commit comments

Comments
 (0)