Panic if memory allocation fails, take 2