Fix missing calls to va_end