test: use std::vector instead of allocating memory with calloc
test: use std::vector instead of allocating memory with calloc

A memory that is allocated with calloc has to be freed.

PiperOrigin-RevId: 378001409

google/gvisor,google/gvisor,google/gvisor,google/gvisor,google/gvisor,google/gvisor,google/gvisor,google/gvisor