diff --git a/test/cpp/interop/xds_interop_client.cc b/test/cpp/interop/xds_interop_client.cc index 3b80ea4eab3..7d6233de5e8 100644 --- a/test/cpp/interop/xds_interop_client.cc +++ b/test/cpp/interop/xds_interop_client.cc @@ -227,6 +227,7 @@ int main(int argc, char** argv) { std::vector test_threads; + test_threads.reserve(FLAGS_num_channels); for (int i = 0; i < FLAGS_num_channels; i++) { test_threads.emplace_back( std::thread(&RunTestLoop, FLAGS_server, duration_per_query));