Check malloc() return value
Check malloc() return value

This is unlikely to fail (especially on platforms with optimistic memory
allocation strategies), but we may as well produce a proper error
message if it does.

grantisu/Atomic-Test,grantisu/Atomic-Test