The comment was wrong, and the function name was misleading. Updated the comment, and renamed the function to enomem_if_null() to make it clearer.