Check or don't check for allocation failure? Provide both alternatives.