Don't forget free the pointer when setting a pointer with a new value.