AFAIU it tests whether it has a message, if not uses a fallback message ("Memory allocation failed").
Not sure if it should print an empty (but non-null) message, but I tend to say no.