Tried modifying pointer to allocate memory differently.