Use right type when mallocing data (allocated too much)