077c9d
commit d05b05d1570ba3ae354a2f5a3cfeefb373b09979
077c9d
Author: Florian Weimer <fweimer@redhat.com>
077c9d
Date:   Mon Aug 13 14:28:07 2018 +0200
077c9d
077c9d
    error, error_at_line: Add missing va_end calls
077c9d
    
077c9d
    (cherry picked from commit b7b52b9dec337a08a89bc67638773be652eba332)
077c9d
077c9d
diff --git a/misc/error.c b/misc/error.c
077c9d
index b4e8b6c93886b737..03378e2f2aa6251e 100644
077c9d
--- a/misc/error.c
077c9d
+++ b/misc/error.c
077c9d
@@ -319,6 +319,7 @@ error (int status, int errnum, const char *message, ...)
077c9d
 
077c9d
   va_start (args, message);
077c9d
   error_tail (status, errnum, message, args);
077c9d
+  va_end (args);
077c9d
 
077c9d
 #ifdef _LIBC
077c9d
   _IO_funlockfile (stderr);
077c9d
@@ -390,6 +391,7 @@ error_at_line (int status, int errnum, const char *file_name,
077c9d
 
077c9d
   va_start (args, message);
077c9d
   error_tail (status, errnum, message, args);
077c9d
+  va_end (args);
077c9d
 
077c9d
 #ifdef _LIBC
077c9d
   _IO_funlockfile (stderr);