virt: Replace malloc with calloc for array allocations