]> granicus.if.org Git - python/commitdiff
Add missing va_end() calls in PC/launcher.c (GH-7690)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 18 Jun 2018 15:56:45 +0000 (08:56 -0700)
committerGitHub <noreply@github.com>
Mon, 18 Jun 2018 15:56:45 +0000 (08:56 -0700)
(cherry picked from commit 3a6d752e35ad17fc00bc77b85364b1c599f4e0fe)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
PC/launcher.c

index d11df437b97eb382852bec22e4a9bdf7e68eb166..56f16eae4043cedfa53e1b714df1359fe1331cf0 100644 (file)
@@ -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);