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); }