- Fix a typo -- check if memory allocation failed instead of checking if a variable...