]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
error, error_at_line: Add missing va_end calls
authorFlorian Weimer <fweimer@redhat.com>
Mon, 13 Aug 2018 12:28:07 +0000 (14:28 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 13 Aug 2018 12:28:07 +0000 (14:28 +0200)
ChangeLog
misc/error.c

index 07b4cec43d895ee4ed3cea58cb8989adadeb9c0d..1c838441e7304f934f275f96250692c986d4af70 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-08-13  Florian Weimer  <fweimer@redhat.com>
+
+       * misc/error.c (error): Add missing va_end call.
+       (error_at_line): Likewise.
+
 2018-08-13  Florian Weimer  <fweimer@redhat.com>
 
        * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
index b4e8b6c93886b73765e91748a7fc2e8e24d9f183..03378e2f2aa6251ed7b65b8a3892f650120d7bd8 100644 (file)
@@ -319,6 +319,7 @@ error (int status, int errnum, const char *message, ...)
 
   va_start (args, message);
   error_tail (status, errnum, message, args);
+  va_end (args);
 
 #ifdef _LIBC
   _IO_funlockfile (stderr);
@@ -390,6 +391,7 @@ error_at_line (int status, int errnum, const char *file_name,
 
   va_start (args, message);
   error_tail (status, errnum, message, args);
+  va_end (args);
 
 #ifdef _LIBC
   _IO_funlockfile (stderr);