Browse Source

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

Con Kolivas 12 years ago
parent
commit
8971c56b8d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      logging.c

+ 1 - 0
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);
 		}