summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);