Allocate with the right size.