checking for the case where we can't allocate memory. (Not like anyone uses this part of the code anyway.)