Updating data with actual memory allocated