- check for malloc failure