From f5a180ad5456545b527fbf644e25309493f42434 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 1 Jan 2015 17:32:36 +0000 Subject: [PATCH] fd.c: Add missing va_end(). This bug was introduced three years ago in commit 3e6bba77. Found by cppcheck. --- fd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fd.c b/fd.c index 3ab5cad0..20dc07da 100644 --- a/fd.c +++ b/fd.c @@ -146,6 +146,7 @@ __printf_2_3 int write_va_buffer(int fd, const char *fmt, ...) va_start(ap, fmt); ret = xvasprintf(&msg, fmt, ap); + va_end(ap); ret = write_all(fd, msg, ret); free(msg); return ret; -- 2.39.5