Two calls - I would be tempted to move it into an throwOutOfMemory() function.