check more allocations against NULL