i'm probably missing something obvious, but i'm not sure how a failed memory allocation and the entry being NULL are correlated.