Fixed bogus test on memory allocation.