Make sure we check failed memory allocations
2 files changed