Do not set pointer for new struct until success.