Commit 8971c56b8d6428755a536a8eddf61b0b7e50fc0f

Con Kolivas 2013-04-29T00:47:58

va_copy is meant to be matched by a va_end in log_generic.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/logging.c b/logging.c
index c4e165a..309d13c 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);
 		}