Error checking on allocs, alloc failure is a hard error