diff options
author | 2018-08-13 14:28:07 +0200 | |
---|---|---|
committer | 2018-10-21 17:38:59 +0200 | |
commit | f737a2cfc28c2be52959ec12b3668b5e08d89d30 (patch) | |
tree | 553974ed0a237503fc1e56acc45484d49afec6b5 | |
parent | Linux: Rewrite __old_getdents64 [BZ #23497] (diff) | |
download | glibc-f737a2cfc28c2be52959ec12b3668b5e08d89d30.tar.gz glibc-f737a2cfc28c2be52959ec12b3668b5e08d89d30.tar.bz2 glibc-f737a2cfc28c2be52959ec12b3668b5e08d89d30.zip |
error, error_at_line: Add missing va_end calls
(cherry picked from commit b7b52b9dec337a08a89bc67638773be652eba332)
(cherry picked from commit d05b05d1570ba3ae354a2f5a3cfeefb373b09979)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | misc/error.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -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-10 Florian Weimer <fweimer@redhat.com> [BZ #23497] diff --git a/misc/error.c b/misc/error.c index b4e8b6c938..03378e2f2a 100644 --- a/misc/error.c +++ b/misc/error.c @@ -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); |