What happens if `loc_vec == nullptr`?
What happens if `loc_vec` allocated memory size is different from (smaller as) the "local vector"?