From 8971c56b8d6428755a536a8eddf61b0b7e50fc0f Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 29 Apr 2013 00:47:58 +1000 Subject: [PATCH] va_copy is meant to be matched by a va_end in log_generic. --- logging.c | 1 + 1 file changed, 1 insertion(+) diff --git a/logging.c b/logging.c index c4e165ae..309d13c3 100644 --- a/logging.c +++ b/logging.c @@ -105,6 +105,7 @@ static void log_generic(int prio, const char *fmt, va_list ap) va_copy(apc, ap); vfprintf(stderr, f, apc); /* atomic write to stderr */ + va_end(apc); fflush(stderr); }