Check host malloc result

I assume the lack of this check is simply an error of omission?

(It actually seems pretty difficult to get malloc to fail on a modern linux, but if it does it's better to find out here than to get a "check failed: data_" later on.)