Allocate space only for n_attrs number of pointers